diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-09-01 10:22:50 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-09-01 10:22:50 +0200 |
commit | 47fb93233a3f9ee2ca1c49d802113a392b660df4 (patch) | |
tree | b95dc29ef9ddadf6ad1173ef25e9e4533feb3719 /src/lua/lua_mimepart.c | |
parent | eb7db9325e5460cd9980fcf24805aaa0c0659668 (diff) | |
download | rspamd-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.c | 2 |
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') |