diff options
-rwxr-xr-x | config/haproxy/haproxy_frontends_edit.php | 4 | ||||
-rwxr-xr-x | config/haproxy/haproxy_global.php | 2 | ||||
-rwxr-xr-x | config/haproxy/haproxy_servers_edit.php | 2 |
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: "; |