aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-30 13:09:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-30 13:09:28 +0100
commit0c9f4a5dceba9a8ecd8a359826518ed30e124595 (patch)
tree5c4ffb1d00f43a5c6448e5aac9eae715d7170c35
parente8437ef00ffc2c6866ff28deaae001cf83dbcba2 (diff)
downloadrspamd-0c9f4a5dceba9a8ecd8a359826518ed30e124595.tar.gz
rspamd-0c9f4a5dceba9a8ecd8a359826518ed30e124595.zip
[Minor] Fix find invocation
-rw-r--r--rules/bitcoin.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/bitcoin.lua b/rules/bitcoin.lua
index c4a34d24f..406f4afa9 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