From: Paul Arthur Date: Thu, 10 May 2018 16:05:38 +0000 (+0000) Subject: [Minor] Don't double-escape lua strings in libucl X-Git-Tag: 1.7.5~36^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eea6b5ea92584c588e5b65fce86aaf9f1441eb38;p=rspamd.git [Minor] Don't double-escape lua strings in libucl Strings are escaped during JSON/UCL output, so escaping them while building the object results in doubly escaped strings. --- diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c index d2557a57f..b97387d9e 100644 --- a/contrib/libucl/lua_ucl.c +++ b/contrib/libucl/lua_ucl.c @@ -550,10 +550,10 @@ ucl_object_lua_import_escape (lua_State *L, int idx) t = lua_type (L, idx); switch (t) { case LUA_TTABLE: - obj = ucl_object_lua_fromtable (L, idx, UCL_STRING_ESCAPE); + obj = ucl_object_lua_fromtable (L, idx, UCL_STRING_RAW); break; default: - obj = ucl_object_lua_fromelt (L, idx, UCL_STRING_ESCAPE); + obj = ucl_object_lua_fromelt (L, idx, UCL_STRING_RAW); break; }