summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-07-30 07:52:37 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-07-30 07:52:37 -0300
commit1be999112daa9aba26e4ce10f7d7da06b9244e5d (patch)
tree911e381d9ecfb38c3d90f0d88cfaf306b0ba8fcb /usr/local/www/services_dyndns_edit.php
parent5c527f4e49a6a01c3eeb2e77b072bed1e3e44188 (diff)
downloadpfsense-1be999112daa9aba26e4ce10f7d7da06b9244e5d.zip
pfsense-1be999112daa9aba26e4ce10f7d7da06b9244e5d.tar.gz
Check if hostname is valid, it fixes #3117
Diffstat (limited to 'usr/local/www/services_dyndns_edit.php')
-rw-r--r--usr/local/www/services_dyndns_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 4b28583..310a994 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -107,6 +107,8 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
+ if (($_POST['host'] && !is_domain($_POST['host'])))
+ $input_errors[] = gettext("The Hostname contains invalid characters.");
if (($_POST['mx'] && !is_domain($_POST['mx'])))
$input_errors[] = gettext("The MX contains invalid characters.");
if ((in_array("username", $reqdfields) && $_POST['username'] && !is_dyndns_username($_POST['username'])) || ((in_array("username", $reqdfields)) && ($_POST['username'] == "")))
OpenPOWER on IntegriCloud