Skip to content

Commit ffda2bc

Browse files
committed
ext/mbstring: Check encoding passed to mb_http_output() has no null bytes
1 parent 4e49c1d commit ffda2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ PHP_FUNCTION(mb_http_output)
13351335

13361336
ZEND_PARSE_PARAMETERS_START(0, 1)
13371337
Z_PARAM_OPTIONAL
1338-
Z_PARAM_STRING_OR_NULL(name, name_len)
1338+
Z_PARAM_PATH_OR_NULL(name, name_len) /* For null byte check */
13391339
ZEND_PARSE_PARAMETERS_END();
13401340

13411341
if (name == NULL) {

0 commit comments

Comments
 (0)