From 335547a04d133e757c044dfa7cd78ab685939924 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 15 Mar 2020 17:30:44 -0700 Subject: [PATCH] Fix bug #79329 - get_headers should not accept \0 --- ext/standard/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/url.c b/ext/standard/url.c index a04d941498..c88e7c6902 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -667,7 +667,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) -- 2.40.0