[wp-trac] [WordPress Trac] #53278: [PHP 8] RSS Widget has infinite loop for instnaces with an undefined URL.

WordPress Trac noreply at wordpress.org
Wed May 26 05:52:25 UTC 2021


#53278: [PHP 8] RSS Widget has infinite loop for instnaces with an undefined URL.
---------------------------+--------------------
 Reporter:  peterwilsoncc  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.8
Component:  Widgets        |    Version:
 Severity:  normal         |   Keywords:  php8
  Focuses:                 |
---------------------------+--------------------
 Discovered during #41683.

 The while loop in `WP_Widget_RSS::widget()` can cause an infinite loop if
 the URL for the widget instance is incorrectly defined, either by having
 an unset URL or an empty URL.

 A simple test can be seen at https://3v4l.org/PgSZg

 If the URL is unset or empty, the function should simply return early
 before the while loop.

 Moving this on the the 5.8 milestone to fix during the bug fix portion of
 the cycle.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53278>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list