From: Arnaud Le Blanc Date: Fri, 24 Apr 2009 21:50:51 +0000 (+0000) Subject: Fix handling of escaped double quotes X-Git-Tag: php-5.4.0alpha1~191^2~3861 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed413db14de4ebb07df5a2db6a2f37b2551c1a41;p=php Fix handling of escaped double quotes --- diff --git a/ext/standard/string.c b/ext/standard/string.c index fe3cd237b0..47b0e7f84e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -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 {