v1.2.4-cvs
----------
+[jan] Correctly escape addresses in procmail driver (Bug #8875).
[jan] Fix procmail scripts when using composite headers (Bug #8804).
[jan] Support some non-standard Date: headers in Sieve vacation rules
(Request #8783).
break;
case 'address':
- $string .= '(.*\<)?' . quotemeta($condition['value']);
+ $string .= '(.*\<)?' . preg_quote($condition['value']);
break;
case 'not begins with':
$reverseCondition = true;
// fall through
case 'begins with':
- $string .= $prefix . quotemeta($condition['value']);
+ $string .= $prefix . preg_quote($condition['value']);
break;
case 'not ends with':
$reverseCondition = true;
// fall through
case 'ends with':
- $string .= '.*' . quotemeta($condition['value']) . '$';
+ $string .= '.*' . preg_quote($condition['value']) . '$';
break;
case 'not contain':
// fall through
case 'contains':
default:
- $string .= '.*' . quotemeta($condition['value']);
+ $string .= '.*' . preg_quote($condition['value']);
break;
}