Skip to content

Commit 335547a

Browse files
committed
Fix bug #79329 - get_headers should not accept \0
1 parent b9d3219 commit 335547a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/url.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ PHP_FUNCTION(get_headers)
667667
php_stream_context *context;
668668

669669
ZEND_PARSE_PARAMETERS_START(1, 3)
670-
Z_PARAM_STRING(url, url_len)
670+
Z_PARAM_PATH(url, url_len)
671671
Z_PARAM_OPTIONAL
672672
Z_PARAM_LONG(format)
673673
Z_PARAM_RESOURCE_EX(zcontext, 1, 0)

0 commit comments

Comments
 (0)