[wp-trac] [WordPress Trac] #19856: wp_get_referer() doesn't return false when the referer URL is the same as the current URL

WordPress Trac noreply at wordpress.org
Sat Jan 9 14:35:05 UTC 2016


#19856: wp_get_referer() doesn't return false when the referer URL is the same as
the current URL
---------------------------------------------+-------------------------
 Reporter:  garyc40                          |       Owner:  swissspidy
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.5
Component:  Bootstrap/Load                   |     Version:  3.3.1
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-------------------------
Changes (by swissspidy):

 * owner:   => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36242"]:
 {{{
 #!CommitTicketReference repository="" revision="36242"
 Ensure `wp_get_referer()` returns `false` when the referrer URL is the
 current URL.

 Adds unit tests.

 Fixes #19856.
 }}}

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


More information about the wp-trac mailing list