]> granicus.if.org Git - php/commitdiff
Fix handling of escaped double quotes
authorArnaud Le Blanc <lbarnaud@php.net>
Fri, 24 Apr 2009 21:50:51 +0000 (21:50 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Fri, 24 Apr 2009 21:50:51 +0000 (21:50 +0000)
ext/standard/string.c

index fe3cd237b0c958c03f81c15a0b143a690bf278ed..47b0e7f84e0c47b4b89eafc5516358f38437aa8d 100644 (file)
@@ -6519,7 +6519,7 @@ PHPAPI int php_u_strip_tags(UChar *rbuf, int len, int *stateptr, UChar *allow, i
                                tp = ((tp-tbuf) >= UBYTES(PHP_TAG_BUF_SIZE) ? tbuf: tp);
                                *(tp++) = ch;
                        }
-                       if (state && prev1 != 0x27 /*'\\'*/ && (!in_q || ch == in_q)) {
+                       if (state && prev1 != 0x5C /*'\\'*/ && (!in_q || ch == in_q)) {
                                if (in_q) {
                                        in_q = 0;
                                } else {