diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-23 18:20:01 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-23 18:20:01 +0400 |
commit | 7a29cf3785824ebcd4d92a55e7c384104808142f (patch) | |
tree | fd952fbf281ee5ff45aae0e49ad968ba624818a1 | |
parent | cfcde690c18f3b0be754115d50d666857ff60309 (diff) | |
download | rspamd-7a29cf3785824ebcd4d92a55e7c384104808142f.tar.gz rspamd-7a29cf3785824ebcd4d92a55e7c384104808142f.zip |
* Try to correctly read regexps
* Turn off perl support by default
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/expressions.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a8bcb87b1..e1e0c7ba2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) OPTION(DEBUG_MODE "Enable debug output [default: ON]" ON) OPTION(ENABLE_OPTIMIZATION "Enable optimization [default: OFF]" OFF) -OPTION(ENABLE_PERL "Enable perl support [default: ON]" ON) +OPTION(ENABLE_PERL "Enable perl support [default: OFF]" OFF) OPTION(ENABLE_LUA "Enable lua support [default: OFF]" OFF) OPTION(SKIP_RELINK_RPATH "Skip relinking and full RPATH for the install tree" OFF) OPTION(ENABLE_REDIRECTOR "Enable redirector install [default: OFF]" OFF) diff --git a/src/expressions.c b/src/expressions.c index 7202a2b38..52b4bcef3 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -380,7 +380,7 @@ parse_expression (memory_pool_t *pool, char *line) if (!is_regexp_flag (*p) || *(p + 1) == '\0') { if (c != p) { /* Copy operand */ - if (*(p + 1) == '\0') { + if (*(p + 1) == '\0' || *p == '/') { p++; } str = memory_pool_alloc (pool, p - c + 1); |