summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-11 16:56:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-11 16:56:15 +0000
commit161a01bd32c389152de1e1417d7016812a209f1c (patch)
tree37deeed7ac769f35d364575f0ab9a056c2fdd730 /etc/inc/util.inc
parent37f91468f7c03949661a44005c677444a10a2a7d (diff)
downloadpfsense-161a01bd32c389152de1e1417d7016812a209f1c.zip
pfsense-161a01bd32c389152de1e1417d7016812a209f1c.tar.gz
Ticket #1185
Check $hostname, not $domain
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc2
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;
OpenPOWER on IntegriCloud