From: Stefan Esser Date: Sat, 26 Jun 2004 07:47:30 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.9RC1~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7252868cea06375e84cb68194f1b3fcd1abea92;p=php MFH --- diff --git a/NEWS b/NEWS index 79ec233c3d..ba59d4d66f 100644 --- a/NEWS +++ b/NEWS @@ -27,6 +27,7 @@ PHP 4 NEWS represented as a string). (pickett at sumu dot org, Ilia) - Fixed bug #28175 (Allow bundled GD to compile against freetype 2.1.2). (Elf, Ilia) +- Fixed strip_tags() to correctly handle '\0' characters. (Stefan) 03 Jun 2004, Version 4.3.7 - Upgraded bundled GD library to 2.0.23. (Ilia) diff --git a/ext/standard/string.c b/ext/standard/string.c index 7ac04c90ce..83992dbc3e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3308,6 +3308,8 @@ PHPAPI size_t php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, in while (i < len) { switch (c) { + case '\0': + break; case '<': if (isspace(*(p + 1))) { goto reg_char;