From 1a5767965ab81b448d603e927cbe9f39c8022b47 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 15 Sep 2009 14:10:57 +0200 Subject: [PATCH] Fixed parameter parser not ignoring escaped quotes when parsing values. --- src/zr/paramparser.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zr/paramparser.inc b/src/zr/paramparser.inc index ea3a5cc..9a7d0b0 100644 --- a/src/zr/paramparser.inc +++ b/src/zr/paramparser.inc @@ -279,8 +279,11 @@ stock ParamParseString(buffer[][ParamParseResult], maxlen, String:paramString[], // Check if the current character is a special character. if (paramString[startpos] == '"') { - // Toggle quote. - quoteon = !quoteon; + // Toggle quote if the current quote is not escaped. + if (paramString[startpos - 1] != '\\') + { + quoteon = !quoteon; + } // Check quote state. if (quoteon)