From: Moriyoshi Koizumi Date: Fri, 16 May 2003 06:19:51 +0000 (+0000) Subject: Fixed bug #23650 (strip_tags() removes hyphens) X-Git-Tag: RELEASE_1_0_2~794 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cbb6b6341d365caa745245670f57008f36f5b3a;p=php Fixed bug #23650 (strip_tags() removes hyphens) --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 861c6bfffe..a61814e16a 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3902,6 +3902,8 @@ PHPAPI size_t php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, in case '-': if (state == 3 && p >= buf + 2 && *(p-1) == '-' && *(p-2) == '!') { state = 4; + } else { + goto reg_char; } break;