diff options
author | Stanislav Malyshev <stas@php.net> | 2020-03-15 17:30:44 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2020-03-15 17:30:44 -0700 |
commit | 0d139c5b94a5f485a66901919e51faddb0371c43 (patch) | |
tree | 16a8928235606e0043f94b5269833a2a8602e7db /ext | |
parent | 41f66e2a2cfd611e35be5ac3bf747f0b56161216 (diff) | |
download | php-git-0d139c5b94a5f485a66901919e51faddb0371c43.tar.gz |
Fix bug #79329 - get_headers should not accept \0
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c index 57fd80cc1d..fe6d7f9de1 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -680,7 +680,7 @@ PHP_FUNCTION(get_headers) php_stream_context *context; ZEND_PARSE_PARAMETERS_START(1, 3) - Z_PARAM_STRING(url, url_len) + Z_PARAM_PATH(url, url_len) Z_PARAM_OPTIONAL Z_PARAM_LONG(format) Z_PARAM_RESOURCE_EX(zcontext, 1, 0) |