diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-28 10:28:55 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-28 10:28:55 +0000 |
commit | 96b4269c0c21a977aec54f01a2fe5594b9676135 (patch) | |
tree | f9606201e9d95a0e06e997a74a1fc44ec6055a85 /usr/local | |
parent | f4875d35adc7840f6a8aad1ede6f762f814aef43 (diff) | |
download | pfsense-96b4269c0c21a977aec54f01a2fe5594b9676135.zip pfsense-96b4269c0c21a977aec54f01a2fe5594b9676135.tar.gz |
Change only needed aliases.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 8 |
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); } } } |