From 549e753353895a0fd231f7e81336b8cea73a5377 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Fri, 23 Feb 2024 20:59:01 +0100 Subject: [PATCH] Lowercase mailbox before registration --- www/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/admin.php b/www/admin.php index f7c989e..ecfddbc 100644 --- a/www/admin.php +++ b/www/admin.php @@ -298,7 +298,7 @@ if ( $_SERVER[ 'REQUEST_METHOD' ] === 'POST' ) { $msg .= ''; } } 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 );