#597 Allow top level domains longer than 4 char

This commit is contained in:
Ulrich Block 2015-07-10 08:01:02 +02:00
parent bcddcd2259
commit eaafd8fd01
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) {