MFB: Remove stray slash (Bug #8804).
authorJan Schneider <jan@horde.org>
Wed, 30 Dec 2009 23:21:26 +0000 (00:21 +0100)
committerJan Schneider <jan@horde.org>
Wed, 30 Dec 2009 23:21:44 +0000 (00:21 +0100)
ingo/docs/CHANGES
ingo/lib/Script/Procmail.php

index 9e4dbc9..f8817ff 100644 (file)
@@ -10,6 +10,7 @@ v2.0-git
 v1.2.4-cvs
 ----------
 
+[jan] Fix procmail scripts when using composite headers (Bug #8804).
 [jan] Support some non-standard Date: headers in Sieve vacation rules
       (Request #8783).
 [jan] Support composite header rules with IMAP backends (Request #7343).
index e062054..c1c8216 100644 (file)
@@ -633,10 +633,10 @@ class Procmail_Recipe {
 
         default:
             // convert 'field' to PCRE pattern matching
-            if (strpos($condition['field'], ',') == false) {
+            if (!strpos($condition['field'], ',')) {
                 $string = '^' . $condition['field'] . ':';
             } else {
-                $string .= '/^(' . str_replace(',', '|', $condition['field']) . '):';
+                $string .= '^(' . str_replace(',', '|', $condition['field']) . '):';
             }
             $prefix = ' ';
         }