Return to bug43008.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
1.1 misho 1: --TEST-- 2: Bug #43008 (php://filter uris ignore url encoded filternames and can't handle slashes) 3: --SKIPIF-- 4: <?php 5: if (!extension_loaded("iconv")) die("skip iconv extension not available"); 6: ?> 7: --FILE-- 8: <?php 9: $url = b"" 10: . b"php://filter/read=" 11: . urlencode(b"convert.iconv.ISO-8859-15/UTF-8") 12: . b'|' . urlencode(b"string.rot13") 13: . b'|' . urlencode(b"string.rot13") 14: . b'|' . urlencode(b"convert.iconv.UTF-8/ISO-8859-15") 15: . b"/resource=data://text/plain,foob%E2r"; 16: var_dump(urlencode(file_get_contents($url))); 17: ?> 18: --EXPECTF-- 19: string(8) "foob%E2r"