summaryrefslogtreecommitdiffstats
path: root/usr/local
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:53:12 -0300
commit7f3ad605133812ff7ff6cae8b7b00ac1a08012ba (patch)
treebfefd24ee6189bdee72c138d08278c8d31a4ab6a /usr/local
parent39655e065d0a2c8c7759781d33466ac4030bdf14 (diff)
downloadpfsense-7f3ad605133812ff7ff6cae8b7b00ac1a08012ba.zip
pfsense-7f3ad605133812ff7ff6cae8b7b00ac1a08012ba.tar.gz
Check if hostname is valid, it fixes #3117
Diffstat (limited to 'usr/local')
-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 7f8c27b..a98a2a4 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -105,6 +105,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