]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix index
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Apr 2018 11:23:44 +0000 (12:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Apr 2018 11:23:44 +0000 (12:23 +0100)
lualib/lua_squeeze_rules.lua

index dd68ccb61ca72fba91c0cfc1af6c329bcc259512..4309e1f975654962f826ca86b8e8546be44f68b7 100644 (file)
@@ -42,7 +42,7 @@ local function gen_lua_squeeze_function(order)
             if first then
               table.remove(ret, 1)
 
-              local second = ret[2]
+              local second = ret[1]
 
               if type(second) == 'number' then
                 table.remove(ret, 1)