]> granicus.if.org Git - php/commitdiff
MFH
authorStefan Esser <sesser@php.net>
Sat, 26 Jun 2004 07:47:30 +0000 (07:47 +0000)
committerStefan Esser <sesser@php.net>
Sat, 26 Jun 2004 07:47:30 +0000 (07:47 +0000)
NEWS
ext/standard/string.c

diff --git a/NEWS b/NEWS
index 79ec233c3d8c48abba78027470e70bd1da456b6b..ba59d4d66f9fd8220b3d56a222e1d3e310d48e90 100644 (file)
--- 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)
index 7ac04c90ce152472b39ff775705269621035e34d..83992dbc3e9e2a6381d3ab64a8ecfb85b766785d 100644 (file)
@@ -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;