#43008 [Asn->Csd]: php://filter uris ignore url encoded filternames and can't handle slashes
ID: 43008
Updated by: lbarnaud@php.net
Reported By: php at benjaminschulz dot com
-Status: Assigned
+Status: Closed
Bug Type: Streams related
Operating System: linux
PHP Version: 5.3CVS-2007-10-17 (CVS)
Assigned To: hholzgra
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-07-11 19:37:09] php at benjaminschulz dot com
The patch works perfectly for me.
------------------------------------------------------------------------
[2008-07-11 09:16:14] arnaud dot lb at gmail dot com
A possible fix would be to urldecode() filter names in the php://
wrapper before passing them to the filter API:
http://arnaud.lb.s3.amazonaws.com/url_encoded_filter-43008.patch
------------------------------------------------------------------------
[2008-03-17 23:42:28] php at benjaminschulz dot com
This should work because otherwise there is no way to pass valid and
existing filternames as URIs to PHP.
(This bug is approved by hartmut btw.)
------------------------------------------------------------------------
[2008-03-17 20:53:31] jani@php.net
And this should work because..? (IMO, it's expected, you pass invalid
data -> you get an error..simple.)
------------------------------------------------------------------------
[2008-03-10 14:55:17] php at benjaminschulz dot com
If the filtername is not URL encoded than i get this:
Warning: readfile(): unable to create or locate filter
"convert.iconv.ISO-8859-15" in ...
Warning: readfile(): Unable to create filter
(convert.iconv.ISO-8859-15) in ...
Warning: readfile(): unable to locate filter "UTF-8" in ...
Warning: readfile(): Unable to create filter (UTF-8) in ...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43008
--
Edit this bug report at http://bugs.php.net/?id=43008&edit=1
Thread (9 messages)