From ef2bc94ac47a5757e15bdb8d48e8268aa1d59212 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sun, 4 May 2003 11:46:23 +0000 Subject: [PATCH] MFH(r-1.378): a quick fix for bug #22008 --- ext/standard/string.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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: -- 2.40.0