[wp-trac] [WordPress Trac] #6723: get_page_uri returns invalid URLs for multibyte page slug

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 14 16:59:52 GMT 2008


#6723: get_page_uri returns invalid URLs for multibyte page slug
---------------------+------------------------------------------------------
 Reporter:  lilyfan  |       Owner:  anonymous      
     Type:  defect   |      Status:  new            
 Priority:  normal   |   Milestone:  2.6            
Component:  i18n     |     Version:  2.5            
 Severity:  normal   |    Keywords:  permalink, slug
---------------------+------------------------------------------------------
 If a page has a multibyte page slug (like %E4%BE%8B ; means "example" in
 japanese), get_page_uri() returns invalid URL as "http://example.com/例/".
 It is not compliant with RFC 1748, because a UTF-8 character is inlcuded
 in the path.
 The reason is that get_page_uri() does "urldecode($page->post_name)". Thus
 "%E4%BE%8B" is decoded to "例" (a UTF-8 character).

 The solution is to avoid using urldecode().

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


More information about the wp-trac mailing list