Handle doublequotes in strings. (#2104)
This commit is contained in:
parent
4324ea0dcd
commit
e4d010e1c0
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue