]> granicus.if.org Git - php/commitdiff
Fix bug #79329 - get_headers should not accept \0
authorStanislav Malyshev <stas@php.net>
Mon, 16 Mar 2020 00:30:44 +0000 (17:30 -0700)
committerStanislav Malyshev <stas@php.net>
Tue, 17 Mar 2020 05:42:15 +0000 (22:42 -0700)
ext/standard/url.c

index c73818f08e1c9273d50dbb9e05f05fc278e43f81..26968ea97612a4f3ffaed97ce4e81b80c47acc12 100644 (file)
@@ -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)