Fixed parameter parser not ignoring escaped quotes when parsing values.
This commit is contained in:
parent
54f7d2240a
commit
1a5767965a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user