mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
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:
committed by
Franco Fichtner
parent
23befc3820
commit
4082180ba8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user