From: Sean Bright Date: Sat, 28 Apr 2001 23:07:51 +0000 (+0000) Subject: Fix for bug #10362 X-Git-Tag: php-4.0.6RC1~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e34117cd9929d186e73cf81352d5d93d2c6291a;p=php Fix for bug #10362 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index ee632b1636..2daac404af 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2768,6 +2768,8 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allo lc = '('; br++; } + } else if (state == 1) { + *(tp++) = c; } else if (state == 0) { *(rp++) = c; } @@ -2779,6 +2781,8 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allo lc = ')'; br--; } + } else if (state == 1) { + *(tp++) = c; } else if (state == 0) { *(rp++) = c; }