diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-21 12:27:45 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-21 12:27:45 -0600 |
commit | 5b506a493f4d5ac671df4828496073a680cb60e5 (patch) | |
tree | e4ee5cbaa74d89614b796b89511c7c6bc12bc4c5 | |
parent | 7525f05d6954abfe279eb702e69b4434099f2074 (diff) | |
download | pfsense-5b506a493f4d5ac671df4828496073a680cb60e5.zip pfsense-5b506a493f4d5ac671df4828496073a680cb60e5.tar.gz |
Fix input validation of custom-type dynamic DNS hostnames.
-rw-r--r-- | usr/local/www/services_dyndns_edit.php | 5 |
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); } |