aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-09 13:34:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-09 13:34:02 +0100
commitda9dae40e27383d7e646558fae2c708ec20b03c0 (patch)
treea2ffe7d681ddc2279ca3ecf4bf71e468f8a1bc12 /src/plugins/chartable.c
parent419015a2878ba9be0bca6cf36fc714526da08c2f (diff)
downloadrspamd-da9dae40e27383d7e646558fae2c708ec20b03c0.tar.gz
rspamd-da9dae40e27383d7e646558fae2c708ec20b03c0.zip
[Fix] Relax unicode properties requirements for chartable module
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index b0c05fa82..3391fa996 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -200,8 +200,11 @@ rspamd_chartable_process_word_utf (struct rspamd_task *task,
if (u_isalpha (uc)) {
sc = ublock_getCode (uc);
- if (sc <= UBLOCK_LATIN_EXTENDED_B) {
- /* Assume all latin characters as basic latin */
+ if (sc <= UBLOCK_COMBINING_DIACRITICAL_MARKS ||
+ sc == UBLOCK_LATIN_EXTENDED_ADDITIONAL) {
+ /* Assume all latin, IPA, diacritic and space modifiers
+ * characters as basic latin
+ */
sc = UBLOCK_BASIC_LATIN;
}