summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-09-07 19:47:23 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-09-07 19:47:23 -0600
commit392687e5633a663c1297363ff2d5d8e8f15298d7 (patch)
treedceb1f571bf3c003bd1a3542a9c44b334b1ed517 /usr/local/www/services_dhcp_edit.php
parentc29ff7bd768dc4dcca98c250ef5498d47221415f (diff)
downloadpfsense-392687e5633a663c1297363ff2d5d8e8f15298d7.zip
pfsense-392687e5633a663c1297363ff2d5d8e8f15298d7.tar.gz
Fix hyphen validation for host name on Services: DHCP: Edit static mapping page.
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 40a9d58..cccbd2a 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -114,7 +114,7 @@ if ($_POST) {
preg_match("/^[0-9]/", $_POST['hostname'], $matches);
if($matches)
$input_errors[] = gettext("The hostname cannot start with a numeric character according to RFC952");
- preg_match("/.*\-/", $_POST['hostname'], $matches);
+ preg_match("/\-\$/", $_POST['hostname'], $matches);
if($matches)
$input_errors[] = gettext("The hostname cannot end with a hyphen according to RFC952");
if (!is_hostname($_POST['hostname'])) {
OpenPOWER on IntegriCloud