From: Vsevolod Stakhov Date: Tue, 22 Apr 2025 08:53:03 +0000 (+0100) Subject: [Fix] Arc: Use tonumber when comparing X-Git-Tag: 3.12.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a38f3c62d2373928ba6bc77f59e21d58dfd4896;p=thirdparty%2Frspamd.git [Fix] Arc: Use tonumber when comparing Issue: #4044 --- diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index fb5dd93e65..07fb5c63fa 100644 --- a/src/plugins/lua/arc.lua +++ b/src/plugins/lua/arc.lua @@ -147,7 +147,7 @@ local function parse_arc_header(hdr, target, is_aar) -- sort by i= attribute table.sort(target, function(a, b) - return (a.i or 0) < (b.i or 0) + return (tonumber(a.i) or 0) < (tonumber(b.i) or 0) end) end