From 47fb93233a3f9ee2ca1c49d802113a392b660df4 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 1 Sep 2016 10:22:50 +0200 Subject: [Fix] Banish table.maxn from Lua parts --- src/lua/lua_mimepart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/lua_mimepart.c') 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') -- cgit v1.2.3