From 84ac2a5491795016d2944c23c70c35a45125182b Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 26 Jul 2011 17:56:32 +0000 Subject: - Fix "Identifier" issue when saving acl for username without @ sign git-svn-id: https://svn.roundcube.net/trunk@4970 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/acl/acl.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/acl/acl.php') diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php index 8d5ee2da2..2b1baaa3c 100644 --- a/plugins/acl/acl.php +++ b/plugins/acl/acl.php @@ -432,8 +432,10 @@ class acl extends rcube_plugin if (!empty($this->specials) && in_array($user, $this->specials)) { $username = $this->gettext($user); } - else if (!strpos($user, '@') && ($realm = $this->get_realm())) { - $user .= '@' . rcube_idn_to_ascii(preg_replace('/^@/', '', $realm)); + else { + if (!strpos($user, '@') && ($realm = $this->get_realm())) { + $user .= '@' . rcube_idn_to_ascii(preg_replace('/^@/', '', $realm)); + } $username = $user; } -- cgit v1.2.3