From: Jens Geyer Date: Thu, 26 Dec 2013 17:56:05 +0000 (+0100) Subject: THRIFT-2298 TJsonProtocol implementation for C# does not allow for both possible... X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4d1b0eac7ddea3d1de59477723958106b6d0209f;p=common%2Fthrift.git THRIFT-2298 TJsonProtocol implementation for C# does not allow for both possible slash (solidus) encodings Patch: Jens Geyer --- diff --git a/lib/csharp/src/Protocol/TJSONProtocol.cs b/lib/csharp/src/Protocol/TJSONProtocol.cs index cad9134a..14db9ccc 100644 --- a/lib/csharp/src/Protocol/TJSONProtocol.cs +++ b/lib/csharp/src/Protocol/TJSONProtocol.cs @@ -69,10 +69,10 @@ namespace Thrift.Protocol 1, 1,(byte)'"', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }; - private char[] ESCAPE_CHARS = "\"\\bfnrt".ToCharArray(); + private char[] ESCAPE_CHARS = "\"\\/bfnrt".ToCharArray(); private byte[] ESCAPE_CHAR_VALS = { - (byte)'"', (byte)'\\', (byte)'\b', (byte)'\f', (byte)'\n', (byte)'\r', (byte)'\t', + (byte)'"', (byte)'\\', (byte)'/', (byte)'\b', (byte)'\f', (byte)'\n', (byte)'\r', (byte)'\t', }; private const int DEF_STRING_SIZE = 16;