diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-30 13:49:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-30 13:49:39 +0000 |
commit | a7b38d20d9e57e07339bda0ca32662f451db44d9 (patch) | |
tree | 7bcdb02a0728f20b8b66fae907ae9f42b21f5a19 /src/lua/lua_util.c | |
parent | bd63ea11af3eb8e6b6afefa5573e8d1a54df87da (diff) | |
download | rspamd-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.c | 4 |
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); |