[wp-trac] [WordPress Trac] #20999: Wordpress 3.4 doesn't handle rss url with percent code correctly

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 20 23:11:29 UTC 2012


#20999: Wordpress 3.4 doesn't handle rss url with percent code correctly
--------------------------------+------------------------------
 Reporter:  herophuong          |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  3.4
 Severity:  normal              |  Resolution:
 Keywords:  dev-feedback        |
--------------------------------+------------------------------
Changes (by kurtpayne):

 * keywords:  reporter-feedback => dev-feedback
 * component:  Feeds => External Libraries


Comment:

 Thanks for the extra information.  I can reproduce this with the code
 below:

 {{{
 $url =
 'https://news.google.com/news/feeds?gl=vn&pz=1&cf=all&ned=vi_vn&hl=vi&q=ch%E1%BB%91ng+h%C3%A0ng+gi%E1%BA%A3&output=rss';
 var_dump($url);

 // outputs:
 // string
 'https://news.google.com/news/feeds?gl=vn&pz=1&cf=all&ned=vi_vn&hl=vi&q=ch%E1%BB%91ng+h%C3%A0ng+gi%E1%BA%A3&output=rss'
 (length=117)

 $iri =& new SimplePie_IRI($url);
 var_dump($iri->get_iri());

 // outputs:
 // string
 'https://news.google.com/news/feeds?gl=vn&pz=1&cf=all&ned=vi_vn&hl=vi&q=chống+hàng+giả&output=rss'
 (length=101)
 }}}

 The problem is happening in
 `SimplePie_IRI::replace_invalid_with_pct_encoding()`.

 Related #18309

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


More information about the wp-trac mailing list