diff --git a/bin/v-add-mail-account b/bin/v-add-mail-account index 8c21cb46..aebc1edd 100755 --- a/bin/v-add-mail-account +++ b/bin/v-add-mail-account @@ -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} diff --git a/web/add/mail/index.php b/web/add/mail/index.php index 520f3bd5..492d1673 100644 --- a/web/add/mail/index.php +++ b/web/add/mail/index.php @@ -147,7 +147,7 @@ if (!empty($_POST['ok_acc'])) { $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'] .= " / " . __('open webmail') . ""; unset($v_account); unset($v_password);