Skip to content

Commit

Permalink
Managesieve: bug correction
Browse files Browse the repository at this point in the history
  • Loading branch information
pulcov committed May 12, 2016
1 parent b312dc6 commit 4f6853b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -855,12 +855,15 @@ function save()
}
else {
$cust_header = $headers = $this->strip_value(array_shift($cust_headers));
$cust_var = $headers = $this->strip_value(array_shift($cust_vars));
$mod = $this->strip_value($mods[$idx]);
$mod_type = $this->strip_value($mod_types[$idx]);
$index = $this->strip_value($indexes[$idx]);
$indexlast = $this->strip_value($lastindexes[$idx]);

if ($header == 'string') {
$cust_var = $headers = $this->strip_value(array_shift($cust_vars));
}

if (preg_match('/^not/', $operator))
$this->form['tests'][$i]['not'] = true;
$type = preg_replace('/^not/', '', $operator);
Expand Down

0 comments on commit 4f6853b

Please sign in to comment.