Skip to content

Commit 69fdc14

Browse files
committed
Fix bug #79329 - get_headers should not accept \0
1 parent 25238bd commit 69fdc14

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
@@ -672,7 +672,7 @@ PHP_FUNCTION(get_headers)
672672
php_stream_context *context;
673673

674674
ZEND_PARSE_PARAMETERS_START(1, 3)
675-
Z_PARAM_STRING(url, url_len)
675+
Z_PARAM_PATH(url, url_len)
676676
Z_PARAM_OPTIONAL
677677
Z_PARAM_LONG(format)
678678
Z_PARAM_RESOURCE_EX(zcontext, 1, 0)

0 commit comments

Comments
 (0)