]> granicus.if.org Git - php/commitdiff
Fix bug in strip_tags function as per bug #5857
authorRasmus Lerdorf <rasmus@php.net>
Sun, 30 Jul 2000 05:04:06 +0000 (05:04 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 30 Jul 2000 05:04:06 +0000 (05:04 +0000)
@ Fix bug in strip_tags function as per bug #5857 (Rasmus)

ext/standard/string.c

index 64430c819eddda739d513e3a4bf091b942883c6d..62d81e4bf5a3ecffa7bb06d6e2fa010c07deee98 100644 (file)
@@ -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;