diff options
-rw-r--r-- | etc/inc/util.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 88d1536..d13dd3e 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -160,7 +160,7 @@ function is_hostname($hostname) { if (!is_string($hostname)) return false; - if (preg_match("/^([_a-z0-9\-]+\.?)+$/i", $domain)) + if (preg_match("/^([_a-z0-9\-]+\.?)+$/i", $hostname)) return true; else return false; |