Fixed parameter parser not ignoring escaped quotes when parsing values.

This commit is contained in:
richard 2009-09-15 14:10:57 +02:00
parent 54f7d2240a
commit 1a5767965a

View File

@ -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)