diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-17 19:24:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-17 19:24:21 +0100 |
commit | 9af0afa4ccf81d0edff48ca44fed217244df8ea9 (patch) | |
tree | 208f250b33fb6d724eaa3d99e628c499e5a332b3 /src/lua | |
parent | 8994e8b036f1108cbd55ef0a56109aae16f73b6c (diff) | |
download | rspamd-9af0afa4ccf81d0edff48ca44fed217244df8ea9.tar.gz rspamd-9af0afa4ccf81d0edff48ca44fed217244df8ea9.zip |
[Minor] Fix lua_text processing in lua_util_tokenize_text
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 6f782b254..538c8d9f7 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -933,7 +933,7 @@ lua_util_tokenize_text (lua_State *L) if (lua_type (L, 1) == LUA_TSTRING) { in = luaL_checklstring (L, 1, &len); } - else if (lua_type (L, 1) == LUA_TTABLE) { + else if (lua_type (L, 1) == LUA_TUSERDATA) { t = lua_check_text (L, 1); if (t) { |