Allow '+' in DDNS username

Email addresses are often used as logins and the '+' character is a valid
character in email addresses. These are commonly found in gmail.com addresses,
for instance.
This commit is contained in:
Charles Ulrich
2018-09-12 07:19:42 +02:00
committed by Franco Fichtner
parent 23befc3820
commit 4082180ba8
+1 -1
View File
@@ -38,7 +38,7 @@ function is_dyndns_username($uname)
{
if (!is_string($uname)) {
return false;
} elseif (preg_match("/[^a-z0-9\-.@_:]/i", $uname)) {
} elseif (preg_match("/[^a-z0-9\-.@_:+]/i", $uname)) {
return false;
} else {
return true;