Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
e4d010e1
"vscode:/vscode.git/clone" did not exist on "18e84623c596ca655cc96bf822afd442bc7ab71d"
Commit
e4d010e1
authored
Sep 15, 2017
by
Philip Gladstone
Committed by
Marcel Stör
Sep 15, 2017
Browse files
Handle doublequotes in strings. (#2104)
parent
4324ea0d
Changes
1
Show whitespace changes
Inline
Side-by-side
app/modules/sjson.c
View file @
e4d010e1
...
@@ -765,6 +765,8 @@ static void encode_lua_object(lua_State *L, ENC_DATA *data, int argno, const cha
...
@@ -765,6 +765,8 @@ static void encode_lua_object(lua_State *L, ENC_DATA *data, int argno, const cha
}
}
*
d
=
'\0'
;
*
d
=
'\0'
;
luaL_addstring
(
&
b
,
value
);
luaL_addstring
(
&
b
,
value
);
}
else
if
(
*
str
==
'"'
)
{
luaL_addstring
(
&
b
,
"
\\\"
"
);
}
else
{
}
else
{
luaL_addchar
(
&
b
,
*
str
);
luaL_addchar
(
&
b
,
*
str
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment