Skip to content

Commit

Permalink
Fix "empty" ACL entry when there's "User, " in user input field
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jan 29, 2013
1 parent 737b629 commit b61041e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/acl/acl.php
Expand Up @@ -441,7 +441,7 @@ private function action_save()
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));
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/acl/package.xml
Expand Up @@ -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>
Expand Down

0 comments on commit b61041e

Please sign in to comment.