[wp-trac] [WordPress Trac] #10991: wp_loginout() encoding problem

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 16 08:24:28 UTC 2009


#10991: wp_loginout() encoding problem
--------------------------+-------------------------------------------------
 Reporter:  neoxx         |       Owner:                                      
     Type:  defect (bug)  |      Status:  new                                 
 Priority:  normal        |   Milestone:  2.9                                 
Component:  General       |     Version:  2.8.4                               
 Severity:  normal        |    Keywords:  wp_loginout, encoding, user-feedback
--------------------------+-------------------------------------------------

Comment(by neoxx):

 Sure, using ''wp_loginout'' to redirect to /tags/tag1+tag2+tag3/ results
 in

 {{{
 http://www.mydomain.com/wp-
 login.php?redirect_to=http%3A%2F%2Fwww.mydomain.com%2Ftags%2Ftag1+tag2+tag3%2F&_wpnonce=xxx
 }}}

 Firefox (3.5.5) removes the ''+'' and redirects to /tags/tag1tag2tag3/
 which results in a 404.

 When using the str_replace as mentioned above to replace the ''+'' with
 ''%2B'' prior to processing the link with wp_loginout, the function will
 produce the link below.

 {{{
 http://www.mydomain.com/wp-
 login.php?redirect_to=http%3A%2F%2Fwww.mydomain.com%2Ftags%2Ftag1%252Btag2%252Btag3%2F&_wpnonce=xxx
 }}}

 This will generate a working redirect link like

 {{{
 http://www.mydomain.com/tags/tag1%2Btag2%2Btag3/
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10991#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list