diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-18 20:03:36 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-18 20:03:36 +0300 |
commit | 9c455404d443c748b6398076c1746a12a7458bfc (patch) | |
tree | 1f6174f446b4257291ef723b4f43ad9f06b7931d /src/plugins/regexp.c | |
parent | 8cc22288806b9ff7115cb8f30349029714e2d89a (diff) | |
download | rspamd-9c455404d443c748b6398076c1746a12a7458bfc.tar.gz rspamd-9c455404d443c748b6398076c1746a12a7458bfc.zip |
* Allow escaped quotes in quoted strings, for example "\"some string\""
* Add warnings when we got errors while parsing rexeps
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r-- | src/plugins/regexp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 9ef4e1ce3..35307359d 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -80,6 +80,9 @@ read_regexp_expression (memory_pool_t *pool, struct regexp_module_item *chain, c struct expression *e, *cur; e = parse_expression (regexp_module_ctx->regexp_pool, line); + if (e == NULL) { + msg_err ("read_regexp_extension: %s is invalid regexp extension", line); + } chain->expr = e; cur = e; while (cur) { |