Permalink
Browse files

only lowercase mail account can be created

  • Loading branch information...
serghey-rodin committed Apr 15, 2014
1 parent be2d89f commit d7105a8be8b0efd2b0e515f58bc0da50c45b774a
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/v-add-mail-account
  2. +1 −1 web/add/mail/index.php
View
@@ -14,7 +14,7 @@ user=$1
domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]')
domain_idn=$(idn -t --quiet -a "$domain")
account=$3
account=$(echo $3 | tr '[:upper:]' '[:lower:]')
password=$4
quota=${5-0}
View
@@ -147,7 +147,7 @@
$webmail = "http://".$http_host."/webmail/";
if (!empty($sys['config']['MAIL_URL'])) $webmail = $sys['config']['MAIL_URL'];
$_SESSION['ok_msg'] = __('MAIL_ACCOUNT_CREATED_OK',$_POST['v_account'],$_POST[v_domain],$_POST['v_account'],$_POST[v_domain]);
$_SESSION['ok_msg'] = __('MAIL_ACCOUNT_CREATED_OK',strtolower($_POST['v_account']),$_POST[v_domain],strtolower($_POST['v_account']),$_POST[v_domain]);
$_SESSION['ok_msg'] .= " / <a href=".$webmail." target='_blank'>" . __('open webmail') . "</a>";
unset($v_account);
unset($v_password);

0 comments on commit d7105a8

Please sign in to comment.