diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-08-21 10:53:33 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-08-21 10:53:33 +0000 |
commit | 58ca68efd612925a7c0cc0cccd62c6d7ccf454e9 (patch) | |
tree | 979a86e3d6c00c2fafd469cc564916a36e728967 /usr/local/www/firewall_aliases_edit.php | |
parent | 7515fb4b2a820c353af950eb452f9839635c8999 (diff) | |
download | pfsense-58ca68efd612925a7c0cc0cccd62c6d7ccf454e9.zip pfsense-58ca68efd612925a7c0cc0cccd62c6d7ccf454e9.tar.gz |
Fix wrong code!
This is wrong since it is not that simple to rename an alias in an alias and correct code for this was already present before.
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 669f654..0be73f7 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -291,8 +291,9 @@ if ($_POST) { update_alias_names_upon_change('nat', 'rule', 'target', '', $_POST['name']); update_alias_names_upon_change('nat', 'rule', 'external-port', '', $_POST['name']); update_alias_names_upon_change('nat', 'rule', 'local-port', '' , $_POST['name']); - // Alias in an alias - update_alias_names_upon_change('aliases', 'alias', 'address', '' , $_POST['name']); + // Alias in an alias; + // XXX: ermal - this is wrong since it is not that simple and code below this line does the right thing + //update_alias_names_upon_change('aliases', 'alias', 'address', '' , $_POST['name']); } if (isset($id) && $a_aliases[$id]) { |