summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-21 12:27:45 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-21 12:27:45 -0600
commit5b506a493f4d5ac671df4828496073a680cb60e5 (patch)
treee4ee5cbaa74d89614b796b89511c7c6bc12bc4c5 /usr/local/www/services_dyndns_edit.php
parent7525f05d6954abfe279eb702e69b4434099f2074 (diff)
downloadpfsense-5b506a493f4d5ac671df4828496073a680cb60e5.zip
pfsense-5b506a493f4d5ac671df4828496073a680cb60e5.tar.gz
Fix input validation of custom-type dynamic DNS hostnames.
Diffstat (limited to 'usr/local/www/services_dyndns_edit.php')
-rw-r--r--usr/local/www/services_dyndns_edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index ff114ce..97de1fd 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -116,8 +116,9 @@ if ($_POST) {
else
$host_to_check = $_POST['host'];
- if (!is_domain($host_to_check))
- $input_errors[] = gettext("The Hostname contains invalid characters.");
+ if ($pconfig['type'] != "custom" && $pconfig['type'] != "custom-v6")
+ if (!is_domain($host_to_check))
+ $input_errors[] = gettext("The hostname contains invalid characters.");
unset($host_to_check);
}
OpenPOWER on IntegriCloud