summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-24 16:34:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-24 16:34:33 +0100
commit3f9fc337ce886a526aca60259bd83faa34ec2c38 (patch)
tree2ff4a682f3bde5999f0ada88e16dfdddd9c5bbc1
parent56f6a6990c28de02dc39a28f4f10b1124095b9f1 (diff)
downloadrspamd-3f9fc337ce886a526aca60259bd83faa34ec2c38.tar.gz
rspamd-3f9fc337ce886a526aca60259bd83faa34ec2c38.zip
[Minor] Avoid double quoting
-rw-r--r--src/lua/lua_task.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 80ece22a6..18754ee6b 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -1605,7 +1605,8 @@ lua_task_set_pre_result (lua_State * L)
/* Keep compatibility here :( */
ucl_object_replace_key (task->messages,
- ucl_object_fromstring (message), "smtp_message", 0,
+ ucl_object_fromstring_common (message, 0, UCL_STRING_RAW),
+ "smtp_message", 0,
false);
}
else {
@@ -1682,7 +1683,8 @@ lua_task_append_message (lua_State * L)
}
ucl_object_insert_key (task->messages,
- ucl_object_fromstring (message), category, 0,
+ ucl_object_fromstring_common (message, 0, UCL_STRING_RAW),
+ category, 0,
true);
}
else {