aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-11-16 13:45:36 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-11-16 13:45:36 +0100
commit5b7f8d986ccbb794092d917a5156c663c48dbea2 (patch)
treec6b9a110279f314569cc60a94dc2306f6877ea8e /include
parent5dee6007352c7fd987775307926c381e6fba032e (diff)
downloadvolse-hubzilla-5b7f8d986ccbb794092d917a5156c663c48dbea2.tar.gz
volse-hubzilla-5b7f8d986ccbb794092d917a5156c663c48dbea2.tar.bz2
volse-hubzilla-5b7f8d986ccbb794092d917a5156c663c48dbea2.zip
Fix #1879: Emails with + in local part was rejected.
Diffstat (limited to 'include')
-rw-r--r--include/network.php2
1 files changed, 1 insertions, 1 deletions
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);