Lowercase mailbox before registration

This commit is contained in:
Daniel Winzen 2024-02-23 20:59:01 +01:00
parent 3f6cfe7c14
commit 549e753353
No known key found for this signature in database
GPG key ID: 222FCC3F35C41077

View file

@ -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 );