summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-07 15:43:00 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-07 15:43:00 +0000
commitbb46d659ddfb624044dd5b076dc67a404efe6f29 (patch)
tree125912f72b1af08d7bea52d3f4fdbca987752f06
parentd6f5320405af61b2caaeed699a05747f0c75f85a (diff)
downloadpfsense-bb46d659ddfb624044dd5b076dc67a404efe6f29.zip
pfsense-bb46d659ddfb624044dd5b076dc67a404efe6f29.tar.gz
Fix Bug #26. This can be easily backported to 1.2.x.
-rw-r--r--etc/rc.filter_synchronize14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize
index 0459120..84d6b59 100644
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -88,45 +88,45 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens
/* strip out nosync items */
if (is_array($config_copy['nat']['advancedoutbound']['rule']))
for ($x = 0; $x < count($config_copy['nat']['advancedoutbound']['rule']); $x++) {
+ $config_copy['nat']['advancedoutbound']['rule'][$x]['descr'] = remove_special_characters($config_copy['nat']['advancedoutbound']['rule'][$x]['descr']);
if (isset ($config_copy['nat']['advancedoutbound']['rule'][$x]['nosync']))
unset ($config_copy['nat']['advancedoutbound']['rule'][$x]);
- $config_copy['nat']['advancedoutbound']['rule'][$x]['descr'] = remove_special_characters($config_copy['nat']['advancedoutbound']['rule'][$x]['descr']);
}
if (is_array($config_copy['nat']['rule']))
for ($x = 0; $x < count($config_copy['nat']['rule']); $x++) {
+ $config_copy['nat']['rule'][$x]['descr'] = remove_special_characters($config_copy['nat']['rule'][$x]['descr']);
if (isset ($config_copy['nat']['rule'][$x]['nosync']))
unset ($config_copy['nat']['rule'][$x]);
- $config_copy['nat']['rule'][$x]['descr'] = remove_special_characters($config_copy['nat']['rule'][$x]['descr']);
}
if (is_array($config_copy['filter']['rule']))
for ($x = 0; $x < count($config_copy['filter']['rule']); $x++) {
+ $config_copy['filter']['rule'][$x]['descr'] = remove_special_characters($config_copy['filter']['rule'][$x]['descr']);
if (isset ($config_copy['filter']['rule'][$x]['nosync']))
unset ($config_copy['filter']['rule'][$x]);
- $config_copy['filter']['rule'][$x]['descr'] = remove_special_characters($config_copy['filter']['rule'][$x]['descr']);
}
if (is_array($config_copy['aliases']['alias']))
for ($x = 0; $x < count($config_copy['aliases']['alias']); $x++) {
+ $config_copy['aliases']['alias'][$x]['descr'] = remove_special_characters($config_copy['aliases']['alias'][$x]['descr']);
if (isset ($config_copy['aliases']['alias'][$x]['nosync']))
unset ($config_copy['aliases']['alias'][$x]);
- $config_copy['aliases']['alias'][$x]['descr'] = remove_special_characters($config_copy['aliases']['alias'][$x]['descr']);
}
if (is_array($config_copy['dnsmasq']['hosts']))
for ($x = 0; $x < count($config_copy['dnsmasq']['hosts']); $x++) {
+ $config_copy['dnsmasq']['hosts'][$x]['descr'] = remove_special_characters($config_copy['dnsmasq']['hosts'][$x]['descr']);
if (isset ($config_copy['dnsmasq']['hosts'][$x]['nosync']))
unset ($config_copy['dnsmasq']['hosts'][$x]);
- $config_copy['dnsmasq']['hosts'][$x]['descr'] = remove_special_characters($config_copy['dnsmasq']['hosts'][$x]['descr']);
}
if (is_array($config_copy['virtualip']['vip']))
for ($x = 0; $x < count($config_copy['virtualip']['vip']); $x++) {
+ $config_copy['virtualip']['vip'][$x]['descr'] = remove_special_characters($config_copy['virtualip']['vip'][$x]['descr']);
if (isset ($config_copy['virtualip']['vip'][$x]['nosync']) or $config_copy['virtualip']['vip'][$x]['mode'] == "proxyarp")
unset ($config_copy['virtualip']['vip'][$x]);
- $config_copy['virtualip']['vip'][$x]['descr'] = remove_special_characters($config_copy['virtualip']['vip'][$x]['descr']);
}
if (is_array($config_copy['ipsec']['tunnel']))
for ($x = 0; $x < count($config_copy['ipsec']['tunnel']); $x++) {
+ $config_copy['ipsec']['tunnel'][$x]['descr'] = remove_special_characters($config_copy['ipsec']['tunnel'][$x]['descr']);
if (isset ($config_copy['ipsec']['tunnel'][$x]['nosync']))
unset ($config_copy['ipsec']['tunnel'][$x]);
- $config_copy['ipsec']['tunnel'][$x]['descr'] = remove_special_characters($config_copy['ipsec']['tunnel'][$x]['descr']);
}
foreach ($sections as $section) {
OpenPOWER on IntegriCloud