mirror of
https://github.com/mariiaan/minipp.git
synced 2026-05-14 10:11:17 +02:00
Fix bug where escape sequences in string arrays are not parsed correctly
This commit is contained in:
@@ -547,7 +547,16 @@ minipp::EResult minipp::MiniPPFile::Values::ArrayValue::Parse(const std::string&
|
||||
if (isInString)
|
||||
{
|
||||
if (c == '\\')
|
||||
{
|
||||
if (i + 1 >= str.size())
|
||||
{
|
||||
PP_COUT("Syntax error: Bad escape sequence: '\\' at end of string");
|
||||
return EResult::FormatError;
|
||||
}
|
||||
currentElement += c;
|
||||
currentElement += str[i + 1];
|
||||
++i;
|
||||
}
|
||||
else if (c == '"')
|
||||
{
|
||||
isInString = false;
|
||||
|
||||
Reference in New Issue
Block a user