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. // Check if the current character is a special character.
if (paramString[startpos] == '"') if (paramString[startpos] == '"')
{ {
// Toggle quote. // Toggle quote if the current quote is not escaped.
if (paramString[startpos - 1] != '\\')
{
quoteon = !quoteon; quoteon = !quoteon;
}
// Check quote state. // Check quote state.
if (quoteon) if (quoteon)