From ed413db14de4ebb07df5a2db6a2f37b2551c1a41 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Fri, 24 Apr 2009 21:50:51 +0000 Subject: [PATCH] Fix handling of escaped double quotes --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.50.1