summaryrefslogtreecommitdiff
path: root/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-02-16 09:17:30 +0100
committerAleksander Machniak <alec@alec.pl>2014-02-16 09:17:30 +0100
commita622451bc50c68f2c735ed4bd997a2101006e06c (patch)
tree5b06b1fe1641678f7456a84efc01cdd44af1a272 /plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
parentabecca8f4bc0898f952a3362bd42b4c78ac783c3 (diff)
Fix wrong action folder selection if managesieve_domains is not empty (#1489617)
Diffstat (limited to 'plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php')
-rw-r--r--plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php b/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
index 4400a5b06..c366afac8 100644
--- a/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
+++ b/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
@@ -1642,11 +1642,12 @@ class rcube_sieve_engine
$domain_select = new html_select(array('name' => "_action_target_domain[$id]", 'id' => 'action_target_domain'.$id));
$domain_select->add(array_combine($domains, $domains));
- $parts = explode('@', $action['target']);
-
- if (!empty($parts)) {
- $action['domain'] = array_pop($parts);
- $action['target'] = implode('@', $parts);
+ if ($action['type'] == 'redirect') {
+ $parts = explode('@', $action['target']);
+ if (!empty($parts)) {
+ $action['domain'] = array_pop($parts);
+ $action['target'] = implode('@', $parts);
+ }
}
}