diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-01-29 08:22:01 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-01-29 08:22:01 +0100 |
commit | b61041e655d122139b9bf75a85b170a15eaeb48e (patch) | |
tree | f028b208642fbd0f7c929aeaf6feea318314e039 /plugins/acl/acl.php | |
parent | 737b629c6f947b956cacf188c2f6d6a410c36f3a (diff) |
Fix "empty" ACL entry when there's "User, " in user input field
Diffstat (limited to 'plugins/acl/acl.php')
-rw-r--r-- | plugins/acl/acl.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php index 5ae9e4e0a..eb8433a27 100644 --- a/plugins/acl/acl.php +++ b/plugins/acl/acl.php @@ -441,7 +441,7 @@ class acl extends rcube_plugin if (!empty($this->specials) && in_array($user, $this->specials)) { $username = $this->gettext($user); } - else { + else if (!empty($user)) { if (!strpos($user, '@') && ($realm = $this->get_realm())) { $user .= '@' . rcube_utils::idn_to_ascii(preg_replace('/^@/', '', $realm)); } |