aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-12-28 17:37:33 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-12-28 17:37:33 -0500
commitfe953aeb3c27e901518a0e6f37b14780020d0fc9 (patch)
tree5a166d9f24215b9dcffe758b2f8d6c85e9203b84 /config
parent0cf6c383af539c22684c1a4769cfcc6008ba4e58 (diff)
downloadpfsense-packages-fe953aeb3c27e901518a0e6f37b14780020d0fc9.tar.gz
pfsense-packages-fe953aeb3c27e901518a0e6f37b14780020d0fc9.tar.bz2
pfsense-packages-fe953aeb3c27e901518a0e6f37b14780020d0fc9.zip
Use base64encode() and base64decode()
Diffstat (limited to 'config')
-rwxr-xr-xconfig/haproxy/haproxy_frontends_edit.php4
-rwxr-xr-xconfig/haproxy/haproxy_global.php2
-rwxr-xr-xconfig/haproxy/haproxy_servers_edit.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/config/haproxy/haproxy_frontends_edit.php b/config/haproxy/haproxy_frontends_edit.php
index 1517c380..a752b4b1 100755
--- a/config/haproxy/haproxy_frontends_edit.php
+++ b/config/haproxy/haproxy_frontends_edit.php
@@ -70,7 +70,7 @@ if (isset($id) && $a_backend[$id]) {
$pconfig['client_timeout'] = $a_backend[$id]['client_timeout'];
$pconfig['port'] = $a_backend[$id]['port'];
$pconfig['a_acl']=&$a_backend[$id]['ha_acls']['item'];
- $pconfig['advanced'] = base64encode($a_backend[$id]['advanced']);
+ $pconfig['advanced'] = base64decode($a_backend[$id]['advanced']);
}
@@ -232,7 +232,7 @@ if ($_POST) {
update_if_changed("extaddr", $backend['extaddr'], $_POST['extaddr']);
update_if_changed("max_connections", $backend['max_connections'], $_POST['max_connections']);
update_if_changed("client_timeout", $backend['client_timeout'], $_POST['client_timeout']);
- update_if_changed("advanced", $backend['advanced'], $_POST['advanced']);
+ update_if_changed("advanced", $backend['advanced'], base64encode($_POST['advanced']));
$backend['ha_acls']['item'] = $a_acl;
diff --git a/config/haproxy/haproxy_global.php b/config/haproxy/haproxy_global.php
index 0f5a5ee8..9db0c216 100755
--- a/config/haproxy/haproxy_global.php
+++ b/config/haproxy/haproxy_global.php
@@ -93,7 +93,7 @@ $pconfig['synchost1'] = $config['installedpackages']['haproxy']['synchost1'];
$pconfig['synchost2'] = $config['installedpackages']['haproxy']['synchost2'];
$pconfig['synchost3'] = $config['installedpackages']['haproxy']['synchost3'];
$pconfig['remotesyslog'] = $config['installedpackages']['haproxy']['remotesyslog'];
-$pconfig['advanced'] = $config['installedpackages']['haproxy']['advanced'];
+$pconfig['advanced'] = base64decode($config['installedpackages']['haproxy']['advanced']);
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
if(strstr($pfSversion, "1.2"))
diff --git a/config/haproxy/haproxy_servers_edit.php b/config/haproxy/haproxy_servers_edit.php
index 25d8e69a..cc034821 100755
--- a/config/haproxy/haproxy_servers_edit.php
+++ b/config/haproxy/haproxy_servers_edit.php
@@ -53,7 +53,7 @@ if (isset($id) && $a_server[$id]) {
$pconfig['weight'] = $a_server[$id]['weight'];
$pconfig['cookie'] = $a_server[$id]['cookie'];
$pconfig['status'] = $a_server[$id]['status'];
- $pconfig['advanced'] = $a_server[$id]['advanced'];
+ $pconfig['advanced'] = base64deode($a_server[$id]['advanced']);
}
$changedesc = "Services: HAProxy: Servers: ";