mirror of
https://github.com/DanWin/mail-hosting.git
synced 2024-11-24 00:20:26 +00:00
Lowercase mailbox before registration
This commit is contained in:
parent
3f6cfe7c14
commit
549e753353
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ if ( $_SERVER[ 'REQUEST_METHOD' ] === 'POST' ) {
|
|||
$msg .= '<div class="green" role="alert">'.htmlspecialchars(_('Successfully updated mailbox.')).'</div>';
|
||||
}
|
||||
} elseif ( $_POST[ 'action' ] === 'save_new_mailbox' && ! empty( $_POST[ 'user' ] ) ) {
|
||||
$email = $_POST[ 'user' ];
|
||||
$email = mb_strtolower( $_POST[ 'user' ] );
|
||||
$ok = check_email_valid( $email, $msg );
|
||||
if ( $ok ) {
|
||||
$ok = check_domain_access( $email, $msg );
|
||||
|
|
Loading…
Reference in a new issue