summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-10 22:46:31 +0000
committerErmal <eri@pfsense.org>2010-12-10 22:47:18 +0000
commit37d202a3bd354e553b63ab9b265bd68dafef7fc5 (patch)
tree808e20c71917feb2268c80f12976f9474cdc6f8b /usr/local/www/firewall_rules_edit.php
parent65f7fba8fc5b161cf1c16df07c4f6b11a5a533c0 (diff)
downloadpfsense-37d202a3bd354e553b63ab9b265bd68dafef7fc5.zip
pfsense-37d202a3bd354e553b63ab9b265bd68dafef7fc5.tar.gz
Do not allow gateways to be selected without a direction.
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 9dbabc6..1c6c3f0 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -364,6 +364,8 @@ if ($_POST) {
}
if (isset($_POST['floating']) && $_POST['pdnpipe'] != "none" && (empty($_POST['direction']) || $_POST['direction'] == "any"))
$input_errors[] = gettext("You can not use limiters in Floating rules without choosing a direction.");
+ if (isset($_POST['floating']) && $_POST['gateway'] != "default" && (empty($_POST['direction']) || $_POST['direction'] == "any"))
+ $input_errors[] = gettext("You can not use gateways in Floating rules without choosing a direction.");
if ($_POST['pdnpipe'] && $_POST['pdnpipe'] != "none") {
if ($_POST['dnpipe'] == "none" )
$input_errors[] = gettext("You must select a queue for the In direction before selecting one for Out too.");
OpenPOWER on IntegriCloud