diff options
author | Stanislav Malyshev <stas@php.net> | 2020-03-15 17:30:44 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2020-03-16 22:42:15 -0700 |
commit | 2bc92a0cf79e52e2096e45987468740d5bc748ed (patch) | |
tree | f01dee167c52512a67387bc26c6e8eb0b2d4cee7 | |
parent | 9ed82b1f7b17bf505fa22944185631e3e8156cf0 (diff) | |
download | php-git-2bc92a0cf79e52e2096e45987468740d5bc748ed.tar.gz |
Fix bug #79329 - get_headers should not accept \0
-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 c73818f08e..26968ea976 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -669,7 +669,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) |