aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-11-17 10:26:25 +0000
committerMario <mario@mariovavti.com>2024-11-17 10:26:25 +0000
commit67a9292aaa5246783b70ca3754b31924416d7f08 (patch)
tree490b54e3916ee845a57da0a34bbde53e241f1074 /include
parent81dda15669aa80f22fcabce91bd35dbf45199276 (diff)
parent5b7f8d986ccbb794092d917a5156c663c48dbea2 (diff)
downloadvolse-hubzilla-67a9292aaa5246783b70ca3754b31924416d7f08.tar.gz
volse-hubzilla-67a9292aaa5246783b70ca3754b31924416d7f08.tar.bz2
volse-hubzilla-67a9292aaa5246783b70ca3754b31924416d7f08.zip
Merge branch 'issue-1879-emails-with-plus-addressing-rejected' into 'dev'
Fix #1879: Emails with + in local part was rejected. See merge request hubzilla/core!2170
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);