]> granicus.if.org Git - php/commitdiff
Fix for bug #10362
authorSean Bright <elixer@php.net>
Sat, 28 Apr 2001 23:07:51 +0000 (23:07 +0000)
committerSean Bright <elixer@php.net>
Sat, 28 Apr 2001 23:07:51 +0000 (23:07 +0000)
ext/standard/string.c

index ee632b16369c2ec69c1f531b9778ad49fe3082f2..2daac404af9e77052ac406e1e503303063e8945f 100644 (file)
@@ -2768,6 +2768,8 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allo
                                                lc = '(';
                                                br++;
                                        }
+                               } else if (state == 1) {
+                                       *(tp++) = c;
                                } else if (state == 0) {
                                        *(rp++) = c;
                                }
@@ -2779,6 +2781,8 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allo
                                                lc = ')';
                                                br--;
                                        }
+                               } else if (state == 1) {
+                                       *(tp++) = c;
                                } else if (state == 0) {
                                        *(rp++) = c;
                                }