diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-05 16:51:42 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-05 16:51:42 +0300 |
commit | ecba33bac16cd42a663f94f003d2bbebf0ea0bce (patch) | |
tree | 08852498c1c9a7b955cfcf41ab226e0c0bb69f34 /src | |
parent | ac7156007316c0b9f3ed061dcd9e3f3c51bb69c1 (diff) | |
download | rspamd-ecba33bac16cd42a663f94f003d2bbebf0ea0bce.tar.gz rspamd-ecba33bac16cd42a663f94f003d2bbebf0ea0bce.zip |
Fix variables boundaries
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index fe7237080..ca9bfb3e7 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -466,7 +466,7 @@ rspamd_config_parse_log_format (struct rspamd_config *cfg) c = p; state = parse_var_content; } - else if (g_ascii_isspace (*p)) { + else if (*p != '_' && *p != '-' && !g_ascii_isalnum (*p)) { /* Variable with no content */ var.begin = c; var.len = p - c; |