From b61041e655d122139b9bf75a85b170a15eaeb48e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 29 Jan 2013 08:22:01 +0100 Subject: Fix "empty" ACL entry when there's "User, " in user input field --- plugins/acl/acl.php | 2 +- plugins/acl/package.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 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)); } diff --git a/plugins/acl/package.xml b/plugins/acl/package.xml index e5d411e18..578ab6138 100644 --- a/plugins/acl/package.xml +++ b/plugins/acl/package.xml @@ -13,9 +13,9 @@ alec@alec.pl yes - 2012-06-28 + 2013-01-29 - 1.0 + 1.1 0.7 -- cgit v1.2.3