summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-23 15:44:33 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-23 15:44:33 -0400
commit7c872d3b7018fc9cdfdba25d800e732b2f8def90 (patch)
treeb87d34336d174b0cd10a5c22f627fd2671959ce2 /usr/local/www/firewall_aliases_edit.php
parentb06b9759b5876a783353a190f8f1a47fc18b72c9 (diff)
downloadpfsense-7c872d3b7018fc9cdfdba25d800e732b2f8def90.zip
pfsense-7c872d3b7018fc9cdfdba25d800e732b2f8def90.tar.gz
Unbreak. Pointy-hat-to: Ermal!
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php5
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]) {
OpenPOWER on IntegriCloud