summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-12 08:43:23 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-12 08:43:23 +0000
commit16e04df83f4d86c8af38f2861050fb9ce1e71e67 (patch)
tree711cf413e97c9a7a24a9503e828d9ad01bd3a610
parentb5a41f433545a91ab821ca3044cc41548db61344 (diff)
- Fix fileinto target is always INBOX (#1487776)
git-svn-id: https://svn.roundcube.net/trunk@4530 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--plugins/managesieve/Changelog2
-rw-r--r--plugins/managesieve/managesieve.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog
index 5a459ac63..298507aba 100644
--- a/plugins/managesieve/Changelog
+++ b/plugins/managesieve/Changelog
@@ -1,3 +1,5 @@
+- Fix fileinto target is always INBOX (#1487776)
+
* version 4.0 [2011-02-10]
-----------------------------------------------------------
- Fix STARTTLS for timsieved < 2.3.10
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index cdfa2b24e..9cbba482a 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -1079,13 +1079,13 @@ class managesieve extends rcube_plugin
'deleted' => '\\\\Deleted',
'draft' => '\\\\Draft',
);
- $action['target'] = (array)$action['target'];
+ $flags_target = (array)$action['target'];
$out .= '<div id="action_flags' .$id.'" style="display:'
. (preg_match('/^(set|add|remove)flag$/', $action['type']) ? 'inline' : 'none') . '"'
. $this->error_class($id, 'action', 'flags', 'action_flags') . '>';
foreach ($flags as $fidx => $flag) {
$out .= '<nobr><input type="checkbox" name="_action_flags[' .$id .'][]" value="' . $flag . '"'
- . (in_array_nocase($flag, $action['target']) ? 'checked="checked"' : '') . ' />'
+ . (in_array_nocase($flag, $flags_target) ? 'checked="checked"' : '') . ' />'
. Q($this->gettext('flag'.$fidx)) .'</nobr> ';
}
$out .= '</div>';