From 6eeb0b2cc31f4e0c1cead2b616bf93eaba984a4c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 30 Jul 2013 07:52:37 -0300 Subject: Check if hostname is valid, it fixes #3117 --- usr/local/www/services_dyndns_edit.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr/local') 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'] == ""))) -- cgit v1.1