diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-08 11:51:49 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-08 11:51:49 +0000 |
| commit | a92760c983dce7bb9d4a6c9f614f71db06f7be2a (patch) | |
| tree | 95834bd15ade2dd7a44bdfbacb6646c95d166d91 /roundcubemail/plugins/managesieve/lib | |
| parent | 9d35fd64eb7b8039e077b592955d10b1cee3172a (diff) | |
- managesieve: Fix handling of "true" as "anyof (true)" test
git-svn-id: https://svn.roundcube.net/trunk@2935 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins/managesieve/lib')
| -rw-r--r-- | roundcubemail/plugins/managesieve/lib/rcube_sieve.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/plugins/managesieve/lib/rcube_sieve.php b/roundcubemail/plugins/managesieve/lib/rcube_sieve.php index 59f7cfcf4..2ab30c54d 100644 --- a/roundcubemail/plugins/managesieve/lib/rcube_sieve.php +++ b/roundcubemail/plugins/managesieve/lib/rcube_sieve.php @@ -442,7 +442,7 @@ class rcube_sieve_script { $result = NULL; - if (preg_match('/^(if|elsif|else)\s+((allof|anyof|exists|header|not|size)\s+(.*))\s+\{(.*)\}$/sm', trim($content), $matches)) + if (preg_match('/^(if|elsif|else)\s+((true|not\s+true|allof|anyof|exists|header|not|size)(.*))\s+\{(.*)\}$/sm', trim($content), $matches)) { list($tests, $join) = $this->_parse_tests(trim($matches[2])); $actions = $this->_parse_actions(trim($matches[5])); @@ -454,7 +454,7 @@ class rcube_sieve_script 'join' => $join, ); } - + return $result; } |
