diff options
author | Lars Knoll <[email protected]> | 2014-03-25 08:37:20 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-03-25 10:01:35 +0100 |
commit | 3c1506ebd7e3d5f0b8eba2c3b410d73ec64602aa (patch) | |
tree | 1a96dff446d3cadd313827dfa00e51cbe0306652 /src | |
parent | 2177d71ddc340a2062f10f93b8c8b3398d02b64f (diff) |
Correctly parse unicode escape sequences between 0 and u001f
The old code rejected these escape sequences because of a
slight misreading of the spec.
Task-number: QTBUG-36968
Change-Id: I56a0e76295d1903b4798719de028bd21ad5be719
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/jsruntime/qv4jsonobject.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index 36706f2766..ca82af1b30 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -594,8 +594,6 @@ static inline bool scanEscapeSequence(const QChar *&json, const QChar *end, uint return false; ++json; } - if (*ch <= 0x1f) - return false; return true; } default: |