Pārlūkot izejas kodu

Fix escape-string issue

isundil 9 gadi atpakaļ
vecāks
revīzija
89690b6185
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      src/streamConsumer.cpp

+ 3 - 0
src/streamConsumer.cpp

@@ -131,7 +131,10 @@ JSonElement *StreamConsumer::consumeToken(JSonContainer *parent, std::string &bu
             else
             {
                 if (c == '\\' || c == '"')
+                {
                     buf += c;
+                    escaped = false;
+                }
                 else
                     throw JsonEscapedException(c, stream.tellg());
             }