Defect #155

SimplePie_Enclosure::get_link() incorrectly returns a url decoded string

Added by Anonymous 244 days ago.

Status:Unconfirmed Start:2009-11-27
Priority:Medium Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Affected Version:

1.2

PHP Version:

5.2.6

mbstring enabled:

No

iconv enabled:

No

cURL enabled:

No

zlib enabled:

No


Description

SimplePie_Enclosure::get_link() return a url decoded string which cause problems when there were non-ascii characters in the url.
SimplePie_Enclosure::get_link() should not call urldecode().

For example, the returned string would be incorrect if using utf8 encoding and the url was "http://someserver/coucou%E9.mp3"

note that SimplePie_Author::get_link() is correctly returning a non decoded string.

simplepie_enclosure_get_link_fix.patch - fix for the issue (276 Bytes) Anonymous, 2009-11-27 03:49

Also available in: Atom PDF