File php5-CVE-2020-7066.patch of Package php5.14673

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

Index: php-5.5.14/ext/standard/url.c
===================================================================
--- php-5.5.14.orig/ext/standard/url.c	2020-04-07 11:47:54.213290592 +0200
+++ php-5.5.14/ext/standard/url.c	2020-04-07 11:48:19.329413568 +0200
@@ -686,7 +686,7 @@ PHP_FUNCTION(get_headers)
 	HashTable *hashT;
 	long format = 0;
                 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &url, &url_len, &format) == FAILURE) {
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &url, &url_len, &format) == FAILURE) {
 		return;
 	}
 	context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_alloc(TSRMLS_C));
openSUSE Build Service is sponsored by