Fix "empty" ACL entry when there's "User, " in user input field

pull/88/head
Aleksander Machniak 12 years ago
parent 6782fe1fd7
commit 6d5ad417d6

@ -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_idn_to_ascii(preg_replace('/^@/', '', $realm));
}

@ -13,9 +13,9 @@
<email>alec@alec.pl</email>
<active>yes</active>
</lead>
<date>2012-06-28</date>
<date>2013-01-29</date>
<version>
<release>1.0</release>
<release>1.1</release>
<api>0.7</api>
</version>
<stability>

Loading…
Cancel
Save