]> source.dussan.org Git - rspamd.git/commitdiff
* Try to correctly read regexps
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 23 Apr 2009 14:20:01 +0000 (18:20 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 23 Apr 2009 14:20:01 +0000 (18:20 +0400)
* Turn off perl support by default

CMakeLists.txt
src/expressions.c

index a8bcb87b149da68ae3ea219055b0bf0d7e00af35..e1e0c7ba2395c912d959e8bf4435426af69089dc 100644 (file)
@@ -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)
index 7202a2b3849c587fbc284ffbd087eb66438fe67f..52b4bcef3a2319116858db247d510d0f70d3057f 100644 (file)
@@ -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);