diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-05 11:09:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-05 11:09:25 +0000 |
commit | d10951d927a559bb983192c210b89bf2a42b6660 (patch) | |
tree | a219eeae000681488e45af3897077a1363b2f5c0 /src/libutil/str_util.h | |
parent | ab46c92e0cae7b8b0dd55bdc634957095cda1916 (diff) | |
download | rspamd-d10951d927a559bb983192c210b89bf2a42b6660.tar.gz rspamd-d10951d927a559bb983192c210b89bf2a42b6660.zip |
[Fix] Treat soft hyphen as zero width space
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 77bb96249..c08dd55bb 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -561,7 +561,8 @@ gchar ** rspamd_string_len_split (const gchar *in, gsize len, #define IS_ZERO_WIDTH_SPACE(uc) ((uc) == 0x200B || \ (uc) == 0x200C || \ (uc) == 0x200D || \ - (uc) == 0xFEFF) + (uc) == 0xFEFF || \ + (uc) == 0x00AD) #define IS_OBSCURED_CHAR(uc) (((uc) >= 0x200B && (uc) <= 0x200F) || \ ((uc) >= 0x2028 && (uc) <= 0x202F) || \ ((uc) >= 0x205F && (uc) <= 0x206F) || \ |