[wp-trac] [WordPress Trac] #5114: wp_safe_redirect() case sensitive for hostnames

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 30 10:25:12 GMT 2007


#5114: wp_safe_redirect() case sensitive for hostnames
-----------------------+----------------------------------------------------
 Reporter:  BoltClock  |       Owner:  anonymous   
     Type:  defect     |      Status:  new         
 Priority:  normal     |   Milestone:  2.3.1       
Component:  General    |     Version:  2.3         
 Severity:  normal     |    Keywords:  dev-feedback
-----------------------+----------------------------------------------------
 For instance, when I enter a post password, no matter whether it was
 correct, I get redirected to my wp-admin folder instead of the form's
 page. I had set my hostname to contain uppercase letters as an experiment.

 Exploring the source code made it apparent that the check in
 wp_safe_redirect() is case sensitive, i.e. hostname http://www.EXAMPLE.com
 does not match http://www.example.com.

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


More information about the wp-trac mailing list