From 6745b16c8241928fd318365f453b9046b8b24173 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Fri, 2 Feb 2001 13:47:02 +0000 Subject: [PATCH] Fix strip_tags to not strip a lone > character @ Fix strip_tags to not strip a lone > character (Rasmus) --- ext/standard/string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/string.c b/ext/standard/string.c index 321183103ef..6b81ee03ab3 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2800,6 +2800,8 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allo state = 0; tp = tbuf; } + } else { + *(rp++) = c; } break;