]> source.dussan.org Git - rspamd.git/commitdiff
* Another try
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 23 Apr 2009 14:22:38 +0000 (18:22 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 23 Apr 2009 14:22:38 +0000 (18:22 +0400)
src/expressions.c

index 52b4bcef3a2319116858db247d510d0f70d3057f..ba24ae25219afe0965a39820d541e2bb78db3611 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' || *p == '/') {
+                                               if (*(p + 1) == '\0' || *(p - 1) == '/') {
                                                        p++;
                                                }
                                                str = memory_pool_alloc (pool, p - c + 1);