summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-11 19:03:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-11 19:03:21 +0100
commit735f159a64d302681f8a836ad538ed399bbf7b28 (patch)
tree429c52006073a7d319ce7c9c2c7bb440b9439d1a /src/lua/lua_util.c
parentc9bb2fe5d30f40e910295241c2ae81cc1d1b8b8d (diff)
downloadrspamd-735f159a64d302681f8a836ad538ed399bbf7b28.tar.gz
rspamd-735f159a64d302681f8a836ad538ed399bbf7b28.zip
[Fix] Disable certain checks for utf spoof detection
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r--src/lua/lua_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 4c674def8..afa5da371 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -1951,6 +1951,9 @@ lua_util_is_utf_spoofed (lua_State *L)
return 1;
}
+ uspoof_setChecks (spc_sgl,
+ USPOOF_ALL_CHECKS & ~USPOOF_WHOLE_SCRIPT_CONFUSABLE,
+ &uc_err);
uspoof_setAllowedChars (spc_sgl, allowed, &uc_err);
#if U_ICU_VERSION_MAJOR_NUM >= 51
uspoof_setRestrictionLevel (spc_sgl, USPOOF_MODERATELY_RESTRICTIVE);