diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-05-14 19:52:45 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-05-14 19:52:45 +0400 |
commit | 0802e795b38a656e9d4ce087ca7e26e7857ec005 (patch) | |
tree | b2336898e1829f0e12ec1c81cd1a8cf9bac2585a /src/plugins | |
parent | f34ca056ec2baf1d23349518a22cf8482645a570 (diff) | |
download | rspamd-0802e795b38a656e9d4ce087ca7e26e7857ec005.tar.gz rspamd-0802e795b38a656e9d4ce087ca7e26e7857ec005.zip |
* Fix stripping header when matching raw headers
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/regexp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 8535c94f7..1b109bf55 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -226,6 +226,7 @@ find_raw_header_pos (const char *headers, const char *headerv) /* Find semicolon */ p += headerlen; if (*p == ':') { + while (*p && g_ascii_isspace (*(++p))); return p; } } @@ -352,8 +353,6 @@ process_regexp (struct rspamd_regexp *re, struct worker_task *task) task_cache_add (task, re, 0); return 0; } - /* Skip header name and start matching after regexp */ - headerv += strlen (re->header) + 1; /* Now the main problem is to find position of end of raw header */ c = headerv; while (*c) { |