mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#597 Allow top level domains longer than 4 char
This commit is contained in:
parent
bcddcd2259
commit
eaafd8fd01
@ -200,7 +200,7 @@ class ValidateUserinput {
|
||||
|
||||
$check = $this->if_obj_or_str($value, $type, $object);
|
||||
|
||||
if ($check and is_string($check) and preg_match("/^[\w\d+\-\.]+\.[a-z]{1,5}$/", $check)) {
|
||||
if ($check and is_string($check) and preg_match("/^[\w\d+\-\.]+\.[a-z]{1,10}$/", $check)) {
|
||||
return $check;
|
||||
} else if ($check) {
|
||||
return $this->loop($check, 'domain', $type);
|
||||
|
@ -72,7 +72,7 @@ function isurl($value) {
|
||||
}
|
||||
|
||||
function isdomain($value) {
|
||||
return (preg_match("/^[a-z0-9\-\.]+\.[a-z]{1,5}$/", $value) !== false) ? $value : false;
|
||||
return (preg_match("/^[a-z0-9\-\.]+\.[a-z]{1,10}$/", $value) !== false) ? $value : false;
|
||||
}
|
||||
|
||||
function isRsync($value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user