Skip to content

Commit c96e894

Browse files
committed
ext/mbstring: Check encoding passed to mb_http_output() has no null bytes
1 parent 86dfbad commit c96e894

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
@@ -1341,7 +1341,7 @@ PHP_FUNCTION(mb_http_output)
13411341

13421342
ZEND_PARSE_PARAMETERS_START(0, 1)
13431343
Z_PARAM_OPTIONAL
1344-
Z_PARAM_STRING_OR_NULL(name, name_len)
1344+
Z_PARAM_PATH_OR_NULL(name, name_len) /* For null byte check */
13451345
ZEND_PARSE_PARAMETERS_END();
13461346

13471347
if (name == NULL) {

0 commit comments

Comments
 (0)