From: Vsevolod Stakhov Date: Thu, 30 Jul 2020 12:09:28 +0000 (+0100) Subject: [Minor] Fix find invocation X-Git-Tag: 2.6~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c9f4a5dceba9a8ecd8a359826518ed30e124595;p=thirdparty%2Frspamd.git [Minor] Fix find invocation --- diff --git a/rules/bitcoin.lua b/rules/bitcoin.lua index c4a34d24f9..406f4afa92 100644 --- a/rules/bitcoin.lua +++ b/rules/bitcoin.lua @@ -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