diff options
-rw-r--r-- | etc/inc/util.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index b0cbfda..8bf31e3 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -171,7 +171,7 @@ function is_domain($domain) { if (!is_string($domain)) return false; - if (preg_match("/^([_a-z0-9\-]+\.?)*$/i", $domain)) + if (preg_match("/^([a-z0-9\-]+\.?)+$/i", $domain)) return true; else return false; @@ -391,7 +391,6 @@ function alias_make_table($config) { } } } - /* check if an alias exists */ function is_alias($name) { @@ -555,4 +554,4 @@ function mac_format($clientmac) { } } -?>
\ No newline at end of file +?> |