From 6d5ad417d6e3e4963f6768378f389d2ee37573ce Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 29 Jan 2013 02:23:40 -0500
Subject: [PATCH] Fix "empty" ACL entry when there's "User, " in user input field
---
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 1952dad..e69fa6a 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -441,7 +441,7 @@
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_idn_to_ascii(preg_replace('/^@/', '', $realm));
}
--
Gitblit v1.9.1