diff options
author | Ermal <eri@pfsense.org> | 2010-12-10 22:46:31 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-10 22:47:18 +0000 |
commit | 37d202a3bd354e553b63ab9b265bd68dafef7fc5 (patch) | |
tree | 808e20c71917feb2268c80f12976f9474cdc6f8b | |
parent | 65f7fba8fc5b161cf1c16df07c4f6b11a5a533c0 (diff) | |
download | pfsense-37d202a3bd354e553b63ab9b265bd68dafef7fc5.zip pfsense-37d202a3bd354e553b63ab9b265bd68dafef7fc5.tar.gz |
Do not allow gateways to be selected without a direction.
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 2 |
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."); |