From: Moriyoshi Koizumi Date: Sun, 4 May 2003 11:46:23 +0000 (+0000) Subject: MFH(r-1.378): a quick fix for bug #22008 X-Git-Tag: php-4.3.2RC3~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef2bc94ac47a5757e15bdb8d48e8268aa1d59212;p=php MFH(r-1.378): a quick fix for bug #22008 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 5ac94fde29..072706c264 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3397,10 +3397,8 @@ PHPAPI size_t php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, in break; case 3: /* JavaScript/CSS/etc... */ - if (*(p-1) == '-' && *(p-2) == '-') { - state = 0; - tp = tbuf; - } + state = 0; + tp = tbuf; break; default: