Download src/php/php-src/ext/curl/tests/bug68089.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug68089.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/curl/tests/bug68089.phpt
-
curl -L -o bug68089.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug68089.phpt
365 Bytes
| --TEST-- | |
| Bug #68089 (NULL byte injection - cURL lib) | |
| --EXTENSIONS-- | |
| curl | |
| --FILE-- | |
| $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 | |