diff options
Diffstat (limited to 'ext/standard/string.c')
| -rw-r--r-- | ext/standard/string.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 5ac94fde29..072706c264 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3397,10 +3397,8 @@ PHPAPI size_t php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, in break; case 3: /* JavaScript/CSS/etc... */ - if (*(p-1) == '-' && *(p-2) == '-') { - state = 0; - tp = tbuf; - } + state = 0; + tp = tbuf; break; default: |
