[wp-trac] Re: [WordPress Trac] #4273: Posting comments to pages with øæå redirects to a 404 page

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 28 21:16:16 GMT 2007


#4273: Posting comments to pages with øæå redirects to a 404 page
-----------------------+----------------------------------------------------
 Reporter:  orvar      |        Owner:  anonymous
     Type:  defect     |       Status:  new      
 Priority:  high       |    Milestone:  2.3      
Component:  General    |      Version:  2.2      
 Severity:  normal     |   Resolution:           
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Changes (by westi):

  * keywords:  needs-testing => has-patch

Comment:

 I can reproduce this.

 I am not convinced by the fix. urldecoding in get_page_uri ensures that
 the:

 {{{a-test-page-%c3%b8%c3%a6a}}} is converted to {{{a-test-
 page-\xc3\xb8\xc3\xa6a}}}

 This means we get the UTF8 chars in the browser source.

 wp_redirect needs a url encoded sanitised link though and strips these
 chars out.

 I will attach what I think is a better fix.


 Testing done with PHP 5.2.4_pre200708051230-pl2-gentoo with Suhosin-Patch
 0.9.6.2

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4273#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list