]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Disable certain checks for utf spoof detection
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 11 May 2017 18:03:21 +0000 (19:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 11 May 2017 18:03:21 +0000 (19:03 +0100)
src/lua/lua_util.c

index 4c674def899c28b48e932acdd1880e35f05df316..afa5da3715999f5d689b0d6bfa794ffd376eb6f8 100644 (file)
@@ -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);