Correct gateway check. This was *WRONG*.

This commit is contained in:
Scott Ullrich 2007-01-09 17:40:16 +00:00
parent 3955baf1f6
commit 423cd2f4f8

View File

@ -99,8 +99,7 @@ if ($_POST) {
}
}
foreach($config['filter']['rule'] as $rule) {
if($rule['gateway'] == $pconfig['gateway']) {
$_POST['gateway'] = $pconfig['gateway'];
if($rule['gateway'] == $_POST['gateway']) {
$input_errors[] = "Cannot change {$_POST['gateway']} gateway. It is currently referenced by the filter rules via policy based routing.";
break;
}