From: Vsevolod Stakhov Date: Thu, 11 May 2017 18:03:21 +0000 (+0100) Subject: [Fix] Disable certain checks for utf spoof detection X-Git-Tag: 1.6.0~230 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=735f159a64d302681f8a836ad538ed399bbf7b28;p=rspamd.git [Fix] Disable certain checks for utf spoof detection --- 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);