From: Rasmus Lerdorf Date: Sun, 30 Jul 2000 05:04:06 +0000 (+0000) Subject: Fix bug in strip_tags function as per bug #5857 X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75bb0197608b917ca15446d105f90a6904c1478b;p=php Fix bug in strip_tags function as per bug #5857 @ Fix bug in strip_tags function as per bug #5857 (Rasmus) --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 64430c819e..62d81e4bf5 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2484,6 +2484,7 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allo } else if (state == 2) { if (!br && lc != '\"' && *(p-1)=='?') { state = 0; + tp = tbuf; } } break;