lbarnaud Fri Apr 24 21:50:51 2009 UTC
Modified files:
/php-src/ext/standard string.c
Log:
Fix handling of escaped double quotes
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.698&r2=1.699&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.698 php-src/ext/standard/string.c:1.699
--- php-src/ext/standard/string.c:1.698 Fri Apr 24 21:23:47 2009
+++ php-src/ext/standard/string.c Fri Apr 24 21:50:51 2009
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.698 2009/04/24 21:23:47 lbarnaud Exp $ */
+/* $Id: string.c,v 1.699 2009/04/24 21:50:51 lbarnaud Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -6519,7 +6519,7 @@
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 {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php