From 5b7f8d986ccbb794092d917a5156c663c48dbea2 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 16 Nov 2024 13:45:36 +0100 Subject: Fix #1879: Emails with + in local part was rejected. --- include/network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/network.php b/include/network.php index 0a78c144b..50e8b1c89 100644 --- a/include/network.php +++ b/include/network.php @@ -612,7 +612,7 @@ function validate_email(string $addr): bool { $matches = array(); $result = preg_match( - '/^[A-Z0-9._%-]+@([A-Z0-9.-]+\.[A-Z0-9-]{2,})$/i', + '/^[A-Z0-9._%+-]+@([A-Z0-9.-]+\.[A-Z0-9-]{2,})$/i', punify($addr), $matches); -- cgit v1.2.3