aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_mimepart.c
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-01 10:22:50 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-01 10:22:50 +0200
commit47fb93233a3f9ee2ca1c49d802113a392b660df4 (patch)
treeb95dc29ef9ddadf6ad1173ef25e9e4533feb3719 /src/lua/lua_mimepart.c
parenteb7db9325e5460cd9980fcf24805aaa0c0659668 (diff)
downloadrspamd-47fb93233a3f9ee2ca1c49d802113a392b660df4.tar.gz
rspamd-47fb93233a3f9ee2ca1c49d802113a392b660df4.zip
[Fix] Banish table.maxn from Lua parts
Diffstat (limited to 'src/lua/lua_mimepart.c')
-rw-r--r--src/lua/lua_mimepart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c
index b8f7d8f85..d519cccbe 100644
--- a/src/lua/lua_mimepart.c
+++ b/src/lua/lua_mimepart.c
@@ -151,7 +151,7 @@ static const struct luaL_reg textpartlib_m[] = {
@example
rspamd_config.MISSING_CONTENT_TYPE = function(task)
local parts = task:get_parts()
- if parts and table.maxn(parts) > 1 then
+ if parts and #parts > 1 then
-- We have more than one part
for _,p in ipairs(parts) do
local ct = p:get_header('Content-Type')