[php-src] master: ext/mbstring: Check encoding passed to mb_http_output() has no null bytes
| From: | Gina Peter Banyard | Date: | Wed, 24 Apr 2024 14:39:58 +0000 |
| Subject: | [php-src] master: ext/mbstring: Check encoding passed to mb_http_output() has no null bytes | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-128232@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2024-04-24T15:39:47+01:00
Commit: https://github.com/php/php-src/commit/c96e8946e1b544e3c7b190e6dfa454226a53e971
Raw diff: https://github.com/php/php-src/commit/c96e8946e1b544e3c7b190e6dfa454226a53e971.diff
ext/mbstring: Check encoding passed to mb_http_output() has no null bytes
Changed paths:
M ext/mbstring/mbstring.c
Diff:
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index dc1f81f49c50..c6111b49e213 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -1341,7 +1341,7 @@ PHP_FUNCTION(mb_http_output)
ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
- Z_PARAM_STRING_OR_NULL(name, name_len)
+ Z_PARAM_PATH_OR_NULL(name, name_len) /* For null byte check */
ZEND_PARSE_PARAMETERS_END();
if (name == NULL) {