commit a7b38d2: [Minor] Core: Further try to reduce FP rate for uspoof

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jan 30 13:56:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-30 13:49:39 +0000
URL: https://github.com/rspamd/rspamd/commit/a7b38d20d9e57e07339bda0ca32662f451db44d9 (HEAD -> master)

[Minor] Core: Further try to reduce FP rate for uspoof

---
 src/lua/lua_util.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 7db5cc047..93051c0f1 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -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);


More information about the Commits mailing list