[wp-trac] [WordPress Trac] #57670: Invalid return type for wp_get_raw_referer()

WordPress Trac noreply at wordpress.org
Thu Jun 29 23:25:53 UTC 2023


#57670: Invalid return type for wp_get_raw_referer()
-------------------------------------------------+-------------------------
 Reporter:  xknown                               |       Owner:
                                                 |  johnbillion
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  General                              |     Version:  4.6
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  php81 has-patch has-unit-tests       |     Focuses:
  commit                                         |
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56115" 56115]:
 {{{
 #!CommitTicketReference repository="" revision="56115"
 General: Ignore invalid types for the '_wp_http_referer' URL query
 variable.

 It's expected that this query variable contains a string when it's set,
 but it's possible for its type to be something else such as an array.
 Ignoring non-string values prevents cascading errors when its value is
 passed through functions that expect a string.

 Props xknown, costdev, jrf, azaozz

 Fixes #57670
 }}}

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


More information about the wp-trac mailing list