Handle doublequotes in strings. (#2104)

This commit is contained in:
Philip Gladstone 2017-09-15 16:25:13 -04:00 committed by Marcel Stör
parent 4324ea0dcd
commit e4d010e1c0
1 changed files with 2 additions and 0 deletions

View File

@ -765,6 +765,8 @@ static void encode_lua_object(lua_State *L, ENC_DATA *data, int argno, const cha
}
*d = '\0';
luaL_addstring(&b, value);
} else if (*str == '"') {
luaL_addstring(&b, "\\\"");
} else {
luaL_addchar(&b, *str);
}