mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
UniValue: don't escape solidus, keep espacing of reverse solidus
This commit is contained in:
parent
91389e51c7
commit
77aeb7c964
@ -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)
|
||||
{
|
||||
|
@ -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";
|
||||
|
@ -49,7 +49,7 @@ static const char *escapes[256] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
"\\/",
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user