diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-07 03:54:12 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-07 03:54:12 -0600 |
commit | 8ad3503e5ef45b5d5e08b517d0b703c746672d39 (patch) | |
tree | 2d161546847f60b7d3313a93c0ea00881ffcc4a6 /usr | |
parent | 0bfd0f799c38d84f60f2c615adac200230251127 (diff) | |
download | pfsense-8ad3503e5ef45b5d5e08b517d0b703c746672d39.zip pfsense-8ad3503e5ef45b5d5e08b517d0b703c746672d39.tar.gz |
Fix link to the associated filter rule for port forwards on an interface other than the first with a filter rule.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index 7a7b807..605876f 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -775,19 +775,16 @@ include("fbegin.inc"); ?> <?php $linkedrule = ""; if (is_array($config['filter']['rule'])) { - $filter_id = 0; - foreach ($config['filter']['rule'] as $filter_rule) { + foreach ($config['filter']['rule'] as $filter_id => $filter_rule) { if (isset($filter_rule['associated-rule-id'])) { echo "<option value=\"{$filter_rule['associated-rule-id']}\""; if ($filter_rule['associated-rule-id']==$pconfig['associated-rule-id']) { echo " SELECTED"; - $linkedrule = sprintf("<br /><a href=\"firewall_rules_edit.php?id=%s\">%s</a><br/>", $filter_id, gettext("View the filter rule")); + $linkedrule = "<br /><a href=\"firewall_rules_edit.php?id={$filter_id}\">" . gettext("View the filter rule") . "</a><br/>"; } echo ">". htmlspecialchars('Rule ' . $filter_rule['descr']) . "</option>\n"; } - if ($filter_rule['interface'] == $pconfig['interface']) - $filter_id++; } } if (isset($pconfig['associated-rule-id'])) |