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

WordPress Trac noreply at wordpress.org
Tue Jun 8 19:34:43 UTC 2021


#53278: [PHP 8] RSS Widget has infinite loop for instances with an undefined URL.
-------------------------------------------------+-------------------------
 Reporter:  peterwilsoncc                        |       Owner:  jorbin
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8
Component:  Widgets                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  php8 has-patch has-unit-tests has-   |     Focuses:
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by jorbin):

 * owner:  (none) => jorbin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51107" 51107]:
 {{{
 #!CommitTicketReference repository="" revision="51107"
 Widgets: Prevent infinite loop in PHP8+ if the URL for the widget instance
 is incorrectly defined

 This checks to make sure $link isn't empty before attempting to manipulate
 it.  A simple test to demonstrate this can be seen at
 https://3v4l.org/PgSZg. Unit tests for both what already works and what is
 fixed by this change.

 Props hellofromTonya, dd32, peterwilsoncc.
 Fixes #53278.
 }}}

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


More information about the wp-trac mailing list