Skip to content

Commit 2bc92a0

Browse files
committed
Fix bug #79329 - get_headers should not accept \0
1 parent 9ed82b1 commit 2bc92a0

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
@@ -669,7 +669,7 @@ PHP_FUNCTION(get_headers)
669669
php_stream_context *context;
670670

671671
ZEND_PARSE_PARAMETERS_START(1, 3)
672-
Z_PARAM_STRING(url, url_len)
672+
Z_PARAM_PATH(url, url_len)
673673
Z_PARAM_OPTIONAL
674674
Z_PARAM_LONG(format)
675675
Z_PARAM_RESOURCE_EX(zcontext, 1, 0)

0 commit comments

Comments
 (0)