[ticket/9687] Require @ sign in emails

PHPBB3-9687
This commit is contained in:
Marc Alexander 2023-08-13 12:25:57 +02:00
parent 63473239f2
commit 21b389bb81
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -40,7 +40,7 @@ class email extends base
{ {
$this->get_excluded(); $this->get_excluded();
$regex = '#^.*?@*|(([a-z0-9\-]+\.)+([a-z]{2,3}))$#i'; $regex = '#^.*?@.*|(([a-z0-9\-]+\.)+([a-z]{2,3}))$#i';
$ban_items = []; $ban_items = [];
foreach ($items as $item) foreach ($items as $item)