aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-29 13:21:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-29 13:21:48 +0000
commit0aca548f5e5c9468d5af182be2ec0a6ff5bb659a (patch)
tree9491e3cad1dd4bbd599a1a3e3ae63217e3548505
parentfb2c14b1e1eeb14b1d773b9a00f2ddceb8686327 (diff)
downloadrspamd-0aca548f5e5c9468d5af182be2ec0a6ff5bb659a.tar.gz
rspamd-0aca548f5e5c9468d5af182be2ec0a6ff5bb659a.zip
[Minor] Lua_util: Fix single character obfuscation checks
-rw-r--r--src/lua/lua_util.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 94f3bb783..7db5cc047 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -2427,13 +2427,6 @@ lua_util_is_utf_spoofed (lua_State *L)
else if (s1) {
/* We have just s1, not s2 */
if (spc_sgl == NULL) {
- USet *allowed = uset_openEmpty ();
-
-#if U_ICU_VERSION_MAJOR_NUM >= 51
- uset_addAll (allowed, uspoof_getRecommendedSet (&uc_err));
- uset_addAll (allowed, uspoof_getInclusionSet (&uc_err));
-#endif
-
spc_sgl = uspoof_open (&uc_err);
if (uc_err != U_ZERO_ERROR) {
@@ -2442,14 +2435,6 @@ lua_util_is_utf_spoofed (lua_State *L)
return 1;
}
-
- uspoof_setChecks (spc_sgl,
- USPOOF_ALL_CHECKS & ~USPOOF_WHOLE_SCRIPT_CONFUSABLE,
- &uc_err);
-#if U_ICU_VERSION_MAJOR_NUM >= 51
- uspoof_setAllowedChars (spc_sgl, allowed, &uc_err);
- uspoof_setRestrictionLevel (spc_sgl, USPOOF_MODERATELY_RESTRICTIVE);
-#endif
}
ret = uspoof_checkUTF8 (spc_sgl, s1, l1, NULL, &uc_err);