dis-bench / src /php /php-src /ext /curl /tests /bug68089.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
365 Bytes
--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