aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-30 13:49:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-30 13:49:39 +0000
commita7b38d20d9e57e07339bda0ca32662f451db44d9 (patch)
tree7bcdb02a0728f20b8b66fae907ae9f42b21f5a19 /src/lua/lua_util.c
parentbd63ea11af3eb8e6b6afefa5573e8d1a54df87da (diff)
downloadrspamd-a7b38d20d9e57e07339bda0ca32662f451db44d9.tar.gz
rspamd-a7b38d20d9e57e07339bda0ca32662f451db44d9.zip
[Minor] Core: Further try to reduce FP rate for uspoof
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r--src/lua/lua_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 7db5cc047..93051c0f1 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -2435,6 +2435,10 @@ lua_util_is_utf_spoofed (lua_State *L)
return 1;
}
+
+ uspoof_setChecks (spc_sgl,
+ USPOOF_INVISIBLE | USPOOF_MIXED_SCRIPT_CONFUSABLE | USPOOF_ANY_CASE,
+ &uc_err);
}
ret = uspoof_checkUTF8 (spc_sgl, s1, l1, NULL, &uc_err);