From: Rasmus Lerdorf Date: Fri, 2 Feb 2001 13:47:02 +0000 (+0000) Subject: Fix strip_tags to not strip a lone > character X-Git-Tag: php-4.0.5RC1~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6745b16c8241928fd318365f453b9046b8b24173;p=php Fix strip_tags to not strip a lone > character @ Fix strip_tags to not strip a lone > character (Rasmus) --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 321183103e..6b81ee03ab 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2800,6 +2800,8 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allo state = 0; tp = tbuf; } + } else { + *(rp++) = c; } break;