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.
|
// 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user