From:             php at benjaminschulz dot com
Operating system: linux
PHP version:      5.3CVS-2007-10-17 (CVS)
PHP Bug Type:     Streams related
Bug description:  php://filter uris ignore url encoded filternames

Description:
------------
because filternames can contain slashes (convert.iconv.from-enc/to-enc) it
should be possible to pass URL-encodet filternames to php://filter

Reproduce code:
---------------
<?php
$str =
'php://filter/read=convert.iconv.ISO-8859-15%2FUTF-8/resource=data://text/plain,foobar';
                                             ^ url encoded slash

Expected result:
----------------
string(6) "foobar"


Actual result:
--------------
Warning:  file_get_contents(): unable to create or locate filter
"convert.iconv.ISO-8859-15%2FUTF-8" in /var/www/foo/a.php on line 34
Warning:  file_get_contents(): Unable to create filter
(convert.iconv.ISO-8859-15%2FUTF-8) in /var/www/foo/a.php on line 34

-- 
Edit bug report at http://bugs.php.net/?id=43008&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43008&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43008&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43008&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43008&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43008&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43008&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43008&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43008&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43008&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43008&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43008&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43008&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43008&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43008&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43008&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43008&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43008&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43008&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43008&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43008&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43008&r=mysqlcfg

Reply via email to