소스 검색

Fix escape-string issue

isundil 9 년 전
부모
커밋
89690b6185
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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());
             }