Explorar el Código

Fix escape-string issue

isundil hace 9 años
padre
commit
89690b6185
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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());
             }