From 16e04df83f4d86c8af38f2861050fb9ce1e71e67 Mon Sep 17 00:00:00 2001 From: alec Date: Sat, 12 Feb 2011 08:43:23 +0000 Subject: - Fix fileinto target is always INBOX (#1487776) git-svn-id: https://svn.roundcube.net/trunk@4530 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/managesieve/Changelog | 2 ++ plugins/managesieve/managesieve.php | 4 ++-- 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 .= '
error_class($id, 'action', 'flags', 'action_flags') . '>'; foreach ($flags as $fidx => $flag) { $out .= '' + . (in_array_nocase($flag, $flags_target) ? 'checked="checked"' : '') . ' />' . Q($this->gettext('flag'.$fidx)) .' '; } $out .= '
'; -- cgit v1.2.3