]> granicus.if.org Git - php/commitdiff
Fixed bug #23650 (strip_tags() removes hyphens)
authorMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 16 May 2003 06:19:51 +0000 (06:19 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 16 May 2003 06:19:51 +0000 (06:19 +0000)
ext/standard/string.c

index 861c6bfffe25310beef8c5ec8335274dfa471bc4..a61814e16abab3582180e01a4d620de32664a0df 100644 (file)
@@ -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;