From 8cbb6b6341d365caa745245670f57008f36f5b3a Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Fri, 16 May 2003 06:19:51 +0000 Subject: [PATCH] Fixed bug #23650 (strip_tags() removes hyphens) --- ext/standard/string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/string.c b/ext/standard/string.c index 861c6bfffe2..a61814e16ab 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;