summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 321183103e..6b81ee03ab 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;