diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-23 15:44:33 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-23 15:44:33 -0400 |
commit | 7c872d3b7018fc9cdfdba25d800e732b2f8def90 (patch) | |
tree | b87d34336d174b0cd10a5c22f627fd2671959ce2 /usr/local/www | |
parent | b06b9759b5876a783353a190f8f1a47fc18b72c9 (diff) | |
download | pfsense-7c872d3b7018fc9cdfdba25d800e732b2f8def90.zip pfsense-7c872d3b7018fc9cdfdba25d800e732b2f8def90.tar.gz |
Unbreak. Pointy-hat-to: Ermal!
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 0be73f7..a2bb9d7 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -201,7 +201,7 @@ if ($_POST) { if($_POST['address' . $x]) { /* fetch down and add in */ $isfirst = 0; - $temp_filename = tempnam("{$g['tmp_path]}/", "alias_import"); + $temp_filename = tempnam("{$g['tmp_path']}/", "alias_import"); unlink($temp_filename); $fda = fopen("{$g['tmp_path']}/tmpfetch","w"); fwrite($fda, "/usr/bin/fetch -q -o \"{$temp_filename}/aliases\" \"" . $_POST['address' . $x] . "\""); @@ -292,8 +292,7 @@ if ($_POST) { 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; - // 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']); + update_alias_names_upon_change('aliases', 'alias', 'address', '' , $_POST['name']); } if (isset($id) && $a_aliases[$id]) { |