aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2018-05-10 16:05:38 +0000
committerPaul Arthur <paul.arthur@flowerysong.com>2018-05-10 16:46:53 +0000
commiteea6b5ea92584c588e5b65fce86aaf9f1441eb38 (patch)
treefd668fde128c4c2f0c7238da99950c83e29e28a5
parentdcfbf5ea8cc522126d868632e392886cf990cc0b (diff)
downloadrspamd-eea6b5ea92584c588e5b65fce86aaf9f1441eb38.tar.gz
rspamd-eea6b5ea92584c588e5b65fce86aaf9f1441eb38.zip
[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.
-rw-r--r--contrib/libucl/lua_ucl.c4
1 files changed, 2 insertions, 2 deletions
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;
}