diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2018-01-22 12:45:34 -0800 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2018-01-22 12:45:34 -0800 |
commit | 3597d3c36125f6181d37db48f3be3902ab50c123 (patch) | |
tree | 95e3934c3e9efd770673f293e0856c4c1664f25d | |
parent | 9e745ddb102abaf65cd22ee2ee86a11367133609 (diff) | |
download | libbu++-3597d3c36125f6181d37db48f3be3902ab50c123.tar.gz libbu++-3597d3c36125f6181d37db48f3be3902ab50c123.tar.bz2 libbu++-3597d3c36125f6181d37db48f3be3902ab50c123.tar.xz libbu++-3597d3c36125f6181d37db48f3be3902ab50c123.zip |
Fixed escaped character encoding in Json decoding.
Diffstat (limited to '')
-rw-r--r-- | src/unstable/json.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp index 3627214..cdc2a30 100644 --- a/src/unstable/json.cpp +++ b/src/unstable/json.cpp | |||
@@ -505,12 +505,13 @@ void Bu::Json::parseString( char &c, Bu::Stream &sInput, Bu::String &sOut ) | |||
505 | { | 505 | { |
506 | if( c == '\\' ) | 506 | if( c == '\\' ) |
507 | bEscape = true; | 507 | bEscape = true; |
508 | if( c == '"' ) | 508 | else if( c == '"' ) |
509 | { | 509 | { |
510 | readChar( c, sInput ); | 510 | readChar( c, sInput ); |
511 | break; | 511 | break; |
512 | } | 512 | } |
513 | sOut += c; | 513 | else |
514 | sOut += c; | ||
514 | } | 515 | } |
515 | } | 516 | } |
516 | } | 517 | } |