Commit e4d010e1 authored by Philip Gladstone's avatar Philip Gladstone Committed by Marcel Stör
Browse files

Handle doublequotes in strings. (#2104)

parent 4324ea0d
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment