Skip to content

Commit

Permalink
Fix bug #79329 - get_headers should not accept \0
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Mar 16, 2020
1 parent 41f66e2 commit 0d139c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ PHP_FUNCTION(get_headers)
php_stream_context *context;

ZEND_PARSE_PARAMETERS_START(1, 3)
Z_PARAM_STRING(url, url_len)
Z_PARAM_PATH(url, url_len)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(format)
Z_PARAM_RESOURCE_EX(zcontext, 1, 0)
Expand Down

0 comments on commit 0d139c5

Please sign in to comment.