summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-28 10:28:55 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-28 10:28:55 +0000
commit96b4269c0c21a977aec54f01a2fe5594b9676135 (patch)
treef9606201e9d95a0e06e997a74a1fc44ec6055a85 /usr/local
parentf4875d35adc7840f6a8aad1ede6f762f814aef43 (diff)
downloadpfsense-96b4269c0c21a977aec54f01a2fe5594b9676135.zip
pfsense-96b4269c0c21a977aec54f01a2fe5594b9676135.tar.gz
Change only needed aliases.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 7a49beb..9db864f 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -245,12 +245,16 @@ if ($_POST) {
if ($a_aliases[$id]['name'] <> $alias['name']) {
foreach ($a_aliases as $aliasid => $aliasd) {
if ($aliasd['address'] <> "") {
+ $tmpdirty = false;
$tmpaddr = explode(" ", $aliasd['address']);
foreach ($tmpaddr as $tmpidx => $tmpalias) {
- if ($tmpalias == $a_aliases[$id]['name'])
+ if ($tmpalias == $a_aliases[$id]['name']) {
$tmpaddr[$tmpidx] = $alias['name'];
+ $tmpdirty = true;
+ }
}
- $a_aliases[$aliasid]['address'] = implode(" ", $tmpaddr);
+ if ($tmpdirty == true)
+ $a_aliases[$aliasid]['address'] = implode(" ", $tmpaddr);
}
}
}
OpenPOWER on IntegriCloud