Repository: thrift
Updated Branches:
  refs/heads/master 0333dbf0b -> 15c400488


THRIFT-3323 Python library does not handle escaped forward slash ("/") in JSON
Client: Python
Patch: Grepsr <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/15c40048
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/15c40048
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/15c40048

Branch: refs/heads/master
Commit: 15c400488550d565e5436f1e77ad3fdddfd4ef66
Parents: 0333dbf
Author: Jens Geyer <[email protected]>
Authored: Tue Sep 29 21:33:23 2015 +0200
Committer: Jens Geyer <[email protected]>
Committed: Tue Sep 29 21:33:23 2015 +0200

----------------------------------------------------------------------
 lib/py/src/protocol/TJSONProtocol.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/15c40048/lib/py/src/protocol/TJSONProtocol.py
----------------------------------------------------------------------
diff --git a/lib/py/src/protocol/TJSONProtocol.py 
b/lib/py/src/protocol/TJSONProtocol.py
index 9c1877b..d270ce8 100644
--- a/lib/py/src/protocol/TJSONProtocol.py
+++ b/lib/py/src/protocol/TJSONProtocol.py
@@ -41,8 +41,8 @@ BACKSLASH = '\\'
 ZERO = '0'
 
 ESCSEQ = '\\u00'
-ESCAPE_CHAR = '"\\bfnrt'
-ESCAPE_CHAR_VALS = ['"', '\\', '\b', '\f', '\n', '\r', '\t']
+ESCAPE_CHAR = '"\\bfnrt/'
+ESCAPE_CHAR_VALS = ['"', '\\', '\b', '\f', '\n', '\r', '\t', '/']
 NUMERIC_CHAR = '+-.0123456789Ee'
 
 CTYPES = {TType.BOOL:       'tf',

Reply via email to