File size: 365 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | --TEST--
Bug #68089 (NULL byte injection - cURL lib)
--EXTENSIONS--
curl
--FILE--
<?php
$url = "file:///etc/passwd\0http://google.com";
$ch = curl_init();
try {
curl_setopt($ch, CURLOPT_URL, $url);
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
Done
--EXPECT--
curl_setopt(): cURL option must not contain any null bytes
Done
|