]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix find invocation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 30 Jul 2020 12:09:28 +0000 (13:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 30 Jul 2020 12:09:28 +0000 (13:09 +0100)
rules/bitcoin.lua

index c4a34d24f962671304a006b20b77b51787afb82f..406f4afa92e0d608b89602b352ff4fb472deb150 100644 (file)
@@ -100,6 +100,7 @@ local function verify_beach32_cksum(hrp, elts)
   return polymod(hrpExpand(hrp), elts) == 1
 end
 
+
 local function gen_bleach32_table(input)
   local d = {}
   local i = 1
@@ -108,7 +109,7 @@ local function gen_bleach32_table(input)
 
   fun.each(function(byte)
     if res then
-      local pos = charset:find(byte)
+      local pos = charset:find(byte, 1, true)
       if not pos then
         res = false
       else