[wp-trac] Re: [WordPress Trac] #2858: Problem with wp_get_referer()

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 24 15:59:29 GMT 2006


#2858: Problem with wp_get_referer()
----------------------------+-----------------------------------------------
 Reporter:  tereshchenko    |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.0.4    
Component:  Administration  |      Version:           
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by tereshchenko):

 As I look to the wp_get_referer() function, it looks like an obvious
 defect. It shouldn't be:
 {{{
 $_REQUEST['_wp_http_referer'], $_SERVER['HTTP_REFERER']
 }}}
 because if you will update several option pages one after another,
 _wp_http_referer will be kept the same, even if $_SERVER['HTTP_REFERER']
 is valid and present. It should be:
 {{{
 $_SERVER['HTTP_REFERER'], $_REQUEST['_wp_http_referer']
 }}}
 In this case new referer will be preferred (if it exists).

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2858>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list