summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-31 12:20:30 +0000
committerErmal <eri@pfsense.org>2010-08-31 12:20:30 +0000
commit9dea60d1463b70e045bfd17b2e2068b4f0dee5db (patch)
tree84e379123e78614f8fb258c2b671a674cd726ee0 /usr
parent6900e5b2f3883dca2f5abee6fafd96185b211ad3 (diff)
downloadpfsense-9dea60d1463b70e045bfd17b2e2068b4f0dee5db.zip
pfsense-9dea60d1463b70e045bfd17b2e2068b4f0dee5db.tar.gz
Ticket #834. Check if the passed value is an url too. Seem they are valid inputs for tftp cases.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 152877d..e2ce65b 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -233,7 +233,7 @@ if ($_POST) {
$input_errors[] = gettext("A valid IP address must be specified for the primary/secondary NTP servers.");
if (($_POST['domain'] && !is_domain($_POST['domain'])))
$input_errors[] = gettext("A valid domain name must be specified for the DNS domain.");
- if (($_POST['tftp'] && (!is_ipaddr($_POST['tftp']) && !is_domain($_POST['tftp']))))
+ if ($_POST['tftp'] && !is_ipaddr($_POST['tftp']) && !is_domain($_POST['tftp']) && !is_URL($_POST['tftp']))
$input_errors[] = gettext("A valid IP address or hostname must be specified for the TFTP server.");
if (($_POST['nextserver'] && !is_ipaddr($_POST['nextserver'])))
$input_errors[] = gettext("A valid IP address must be specified for the network boot server.");
OpenPOWER on IntegriCloud