summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-04-23 20:10:30 +0545
committerRenato Botelho <garga@FreeBSD.org>2015-04-27 09:03:32 -0300
commit73bbcaed4d62d336224bd069876bc0e3d2e21d1f (patch)
tree28e277727aeec84fc7d6ce381c175d80d26c0661 /usr/local/www/services_dhcp.php
parent1fa1a40b84f8a9c3503a952067c391b555bbc08a (diff)
downloadpfsense-73bbcaed4d62d336224bd069876bc0e3d2e21d1f.zip
pfsense-73bbcaed4d62d336224bd069876bc0e3d2e21d1f.tar.gz
Do not process dhcpd implementation if input errors
If I go to Service->DHCP Server, make some edits that are invalid (e.g. change range start or end to some invalid string) and press Save then the page comes back displaying the input error(s). But it also says: "The changes have been applied successfully." Actually, the changes (which were invalid) have not been applied to the config - all is well there - but dhcpd has been stopped and started and dnsmasq or unbound has been kicked... which is all unnecessary processing since the user has not yet provided valid values to save.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rw-r--r--usr/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 971b0a6..f0b5be9 100644
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -490,7 +490,7 @@ if (isset($_POST['submit'])) {
}
}
-if (isset($_POST['submit']) || isset($_POST['apply'])) {
+if ((isset($_POST['submit']) || isset($_POST['apply'])) && (!$input_errors)) {
$retval = 0;
$retvaldhcp = 0;
$retvaldns = 0;
OpenPOWER on IntegriCloud