[wp-trac] [WordPress Trac] #16646: non-english category prefix not working

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 24 17:54:13 UTC 2011


#16646: non-english category prefix not working
--------------------------+-----------------------------
 Reporter:  qamaz         |      Owner:  qamaz
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 ''Reason:'' this lines wont work with non-english prefix without
 '''urlencode''' (canonical.php, line 363):

 {{{
 if ( !$redirect_url || $redirect_url == $requested_url ) // yes, again --
 in case the filter aborted the request
                 return false;
 }}}


 So the function proceeds to redirect, non-english symbols are cut away
 from the string by '''wp_sanitize_redirect''' or somethig, and the user is
 redirected to 404.


 ''Solution:'' put
 {{{
 $redirect_url = urlencode($redirect_url);
 }}}
 somewhere in the '''redirect_canonical()''' function (not sure about the
 place).

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


More information about the wp-trac mailing list