diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-01 11:08:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-01 11:08:43 +0100 |
commit | 6bd388ae930900bef74532f810c4411650761868 (patch) | |
tree | bb164cd166ae1a43c2c7214d6961f0acda622ec8 /src/lua/lua_task.c | |
parent | 083e6ac5ce374e1e9759c7998dd04b9525333eb4 (diff) | |
download | rspamd-6bd388ae930900bef74532f810c4411650761868.tar.gz rspamd-6bd388ae930900bef74532f810c4411650761868.zip |
[Minor] Add flags for rspamd_lua_parse_table_arguments
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 0ffe4b8c5..f9033eef8 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -5011,6 +5011,7 @@ lua_task_store_in_file (lua_State *L) if (task) { if (lua_istable (L, 2)) { if (!rspamd_lua_parse_table_arguments (L, 2, &err, + RSPAMD_LUA_PARSE_ARGUMENTS_DEFAULT, "filename=S;tmpmask=S;mode=I;force_new=B;keep=B", &fname, &tmpmask, &mode, &force_new, &keep)) { msg_err_task ("cannot get parameters list: %e", err); @@ -5112,9 +5113,10 @@ lua_task_process_regexp (lua_State *L) */ if (task != NULL) { if (!rspamd_lua_parse_table_arguments (L, 2, &err, - "*re=U{regexp};*type=S;header=V;strong=B", - &re, &type_str, &header_len, &header_str, - &strong)) { + RSPAMD_LUA_PARSE_ARGUMENTS_DEFAULT, + "*re=U{regexp};*type=S;header=V;strong=B", + &re, &type_str, &header_len, &header_str, + &strong)) { msg_err_task ("cannot get parameters list: %e", err); if (err) { |