diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-10 08:32:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 08:32:23 +0100 |
commit | cadf3073d1ad7d100bd8cd31059d8c2886c03d5b (patch) | |
tree | db60e35f5a8c5ccffce16141c425833763695d2f | |
parent | dca6ede4d650e98240f8438b50484955afbedc3e (diff) | |
parent | 57802be8cdd3e9eef691bd5c0c1c42a489902b95 (diff) | |
download | rspamd-cadf3073d1ad7d100bd8cd31059d8c2886c03d5b.tar.gz rspamd-cadf3073d1ad7d100bd8cd31059d8c2886c03d5b.zip |
Merge pull request #1742 from flowerysong/homographs
Fix lua_util_is_utf_spoofed logic
-rw-r--r-- | src/lua/lua_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index ef2adfe81..2e98d64fd 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1973,8 +1973,8 @@ lua_util_is_utf_spoofed (lua_State *L) 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_setAllowedChars (spc_sgl, allowed, &uc_err); uspoof_setRestrictionLevel (spc_sgl, USPOOF_MODERATELY_RESTRICTIVE); #endif } |