mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
16 lines
452 B
Plaintext
16 lines
452 B
Plaintext
|
--TEST--
|
||
|
Bug #43008 (php://filter uris ignore url encoded filternames and can't handle slashes)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$url = b""
|
||
|
. b"php://filter/read="
|
||
|
. urlencode(b"convert.iconv.ISO-8859-15/UTF-8")
|
||
|
. b'|' . urlencode(b"string.rot13")
|
||
|
. b'|' . urlencode(b"string.rot13")
|
||
|
. b'|' . urlencode(b"convert.iconv.UTF-8/ISO-8859-15")
|
||
|
. b"/resource=data://text/plain,foob%E2r";
|
||
|
var_dump(urlencode(file_get_contents($url)));
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
string(8) "foob%E2r"
|