Browse Source

Merge pull request #6339

77aeb7c UniValue: don't escape solidus, keep espacing of reverse solidus (Jonas Schnelli)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
c3f0490a06
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/test/univalue_tests.cpp
  2. 1
      src/univalue/gen.cpp
  3. 2
      src/univalue/univalue_escapes.h

2
src/test/univalue_tests.cpp

@ -286,7 +286,7 @@ BOOST_AUTO_TEST_CASE(univalue_object) @@ -286,7 +286,7 @@ BOOST_AUTO_TEST_CASE(univalue_object)
}
static const char *json1 =
"[1.10000000,{\"key1\":\"str\\u0000\",\"key2\":800,\"key3\":{\"name\":\"martian\"}}]";
"[1.10000000,{\"key1\":\"str\\u0000\",\"key2\":800,\"key3\":{\"name\":\"martian http://test.com\"}}]";
BOOST_AUTO_TEST_CASE(univalue_readwrite)
{

1
src/univalue/gen.cpp

@ -22,7 +22,6 @@ static void initJsonEscape() @@ -22,7 +22,6 @@ static void initJsonEscape()
{
escapes[(int)'"'] = "\\\"";
escapes[(int)'\\'] = "\\\\";
escapes[(int)'/'] = "\\/";
escapes[(int)'\b'] = "\\b";
escapes[(int)'\f'] = "\\f";
escapes[(int)'\n'] = "\\n";

2
src/univalue/univalue_escapes.h

@ -49,7 +49,7 @@ static const char *escapes[256] = { @@ -49,7 +49,7 @@ static const char *escapes[256] = {
NULL,
NULL,
NULL,
"\\/",
NULL,
NULL,
NULL,
NULL,

Loading…
Cancel
Save