diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-11 19:03:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-11 19:03:21 +0100 |
commit | 735f159a64d302681f8a836ad538ed399bbf7b28 (patch) | |
tree | 429c52006073a7d319ce7c9c2c7bb440b9439d1a /src/lua/lua_util.c | |
parent | c9bb2fe5d30f40e910295241c2ae81cc1d1b8b8d (diff) | |
download | rspamd-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.c | 3 |
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); |