diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-16 16:02:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-16 16:02:48 +0100 |
commit | 8b2dd63f5857056b7d3f6c67371bba906b3a2a1d (patch) | |
tree | 57f67e890843d391c8e41f333505bc81a3a3a0a2 /contrib/libucl | |
parent | 130a6f1c1906e7ec8455fd3304d9f727841b7e36 (diff) | |
download | rspamd-8b2dd63f5857056b7d3f6c67371bba906b3a2a1d.tar.gz rspamd-8b2dd63f5857056b7d3f6c67371bba906b3a2a1d.zip |
[Minor] Libucl: Fix rspamd{text} parsing
Diffstat (limited to 'contrib/libucl')
-rw-r--r-- | contrib/libucl/lua_ucl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c index 049b1d08c..d240d12e0 100644 --- a/contrib/libucl/lua_ucl.c +++ b/contrib/libucl/lua_ucl.c @@ -807,8 +807,8 @@ struct _rspamd_lua_text { /*** * @method parser:parse_text(input) - * Parse UCL object from file. - * @param {string} input string to parse + * Parse UCL object from text object (Rspamd specific). + * @param {rspamd_text} input text to parse * @return {bool[, string]} if res is `true` then file has been parsed successfully, otherwise an error string is also returned */ static int @@ -820,7 +820,7 @@ lua_ucl_parser_parse_text (lua_State *L) int ret = 2; parser = lua_ucl_parser_get (L, 1); - t = luaL_checkudata (L, 2, "rspamd{text}"); + t = lua_touserdata (L, 2); if (lua_type (L, 3) == LUA_TSTRING) { type = lua_ucl_str_to_parse_type (lua_tostring (L, 3)); |