File php7-CVE-2020-7066.patch of Package php7

X-Git-Url: http://208.43.231.11:8000/?p=php-src.git;a=blobdiff_plain;f=ext%2Fstandard%2Furl.c;h=fe6d7f9de1d69eaafd577518d92d899feb7145b0;hp=57fd80cc1dc0e1a5cb62da8a644b62c9308a8246;hb=0d139c5b94a5f485a66901919e51faddb0371c43;hpb=41f66e2a2cfd611e35be5ac3bf747f0b56161216

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)
openSUSE Build Service is sponsored by