From 21b389bb81206cbb4b85fb021a194bf02fa0b38f Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 13 Aug 2023 12:25:57 +0200 Subject: [PATCH] [ticket/9687] Require @ sign in emails PHPBB3-9687 --- phpBB/phpbb/ban/type/email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/ban/type/email.php b/phpBB/phpbb/ban/type/email.php index bc70cdd00e..213084fc24 100644 --- a/phpBB/phpbb/ban/type/email.php +++ b/phpBB/phpbb/ban/type/email.php @@ -40,7 +40,7 @@ class email extends base { $this->get_excluded(); - $regex = '#^.*?@*|(([a-z0-9\-]+\.)+([a-z]{2,3}))$#i'; + $regex = '#^.*?@.*|(([a-z0-9\-]+\.)+([a-z]{2,3}))$#i'; $ban_items = []; foreach ($items as $item)