aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-05 16:51:42 +0300
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-05 16:51:42 +0300
commitecba33bac16cd42a663f94f003d2bbebf0ea0bce (patch)
tree08852498c1c9a7b955cfcf41ab226e0c0bb69f34 /src
parentac7156007316c0b9f3ed061dcd9e3f3c51bb69c1 (diff)
downloadrspamd-ecba33bac16cd42a663f94f003d2bbebf0ea0bce.tar.gz
rspamd-ecba33bac16cd42a663f94f003d2bbebf0ea0bce.zip
Fix variables boundaries
Diffstat (limited to 'src')
-rw-r--r--src/libserver/cfg_utils.c2
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;