Skip to content

Commit 0d139c5

Browse files
committed
Fix bug #79329 - get_headers should not accept \0
1 parent 41f66e2 commit 0d139c5

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
@@ -680,7 +680,7 @@ PHP_FUNCTION(get_headers)
680680
php_stream_context *context;
681681

682682
ZEND_PARSE_PARAMETERS_START(1, 3)
683-
Z_PARAM_STRING(url, url_len)
683+
Z_PARAM_PATH(url, url_len)
684684
Z_PARAM_OPTIONAL
685685
Z_PARAM_LONG(format)
686686
Z_PARAM_RESOURCE_EX(zcontext, 1, 0)

0 commit comments

Comments
 (0)