]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Core: Further try to reduce FP rate for uspoof
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Jan 2019 13:49:39 +0000 (13:49 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Jan 2019 13:49:39 +0000 (13:49 +0000)
src/lua/lua_util.c

index 7db5cc047af0330a8f6ab3fd28b74865905ce0e7..93051c0f124d652ab4920843fc1962f72c2f05ed 100644 (file)
@@ -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);