summaryrefslogtreecommitdiffstats
path: root/usr/local/www
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:56:46 -0300
commit6eeb0b2cc31f4e0c1cead2b616bf93eaba984a4c (patch)
tree983e9a457ea7799328b669ca8dde0f2be6c4a8bc /usr/local/www
parent9d81f904d1572ae1cf648fa8f7f1d180172a4b6f (diff)
downloadpfsense-6eeb0b2cc31f4e0c1cead2b616bf93eaba984a4c.zip
pfsense-6eeb0b2cc31f4e0c1cead2b616bf93eaba984a4c.tar.gz
Check if hostname is valid, it fixes #3117
Diffstat (limited to 'usr/local/www')
-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 e382deb..6dc5b22 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -88,6 +88,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 (($_POST['username'] && !is_dyndns_username($_POST['username'])) || (($pconfig['type'] != "namecheap") && ($_POST['username'] == "")))
OpenPOWER on IntegriCloud