aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-12-28 17:35:40 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-12-28 17:35:40 -0500
commit0cf6c383af539c22684c1a4769cfcc6008ba4e58 (patch)
tree3036eb9378e231c11ef49be041f21fbcd4c558c1 /config/haproxy/haproxy.inc
parenta3b547b16a58856cb455333a1e57cfa46c7b82ac (diff)
downloadpfsense-packages-0cf6c383af539c22684c1a4769cfcc6008ba4e58.tar.gz
pfsense-packages-0cf6c383af539c22684c1a4769cfcc6008ba4e58.tar.bz2
pfsense-packages-0cf6c383af539c22684c1a4769cfcc6008ba4e58.zip
Use base64encode() and base64decode()
Diffstat (limited to 'config/haproxy/haproxy.inc')
-rw-r--r--config/haproxy/haproxy.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index 35f8ecac..29827d39 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -109,7 +109,7 @@ function haproxy_configure() {
if(is_array($a_global)) {
fwrite ($fd, "global\n");
if($a_global['advanced'])
- fwrite ($fd, "\t" . str_replace("\n", " ", $a_global['advanced']) . "\n");
+ fwrite ($fd, "\t" . str_replace("\n", " ", base64deode($a_global['advanced'])) . "\n");
fwrite ($fd, "\tmaxconn\t\t\t".$a_global['maxconn']."\n");
if($a_global['remotesyslog'])
fwrite ($fd, "\tlog\t\t\t{$a_global['remotesyslog']}\n");
@@ -153,7 +153,7 @@ function haproxy_configure() {
// Advanced pass trhu
if($backend['advanced'])
- fwrite ($fd, "\t" . str_replace("\n", " ", $backend['advanced']) . "\n");
+ fwrite ($fd, "\t" . str_replace("\n", " ", base64decode($backend['advanced'])) . "\n");
// https is an alias for tcp for clarity purpouses
if(strtolower($backend['type']) == "https") {
@@ -234,7 +234,7 @@ function haproxy_configure() {
$server_ports[] = $server['port'];
}
if($server['advanced'])
- $advanced_txt = " " . str_replace("\n", " ", $server['advanced']);
+ $advanced_txt = " " . str_replace("\n", " ", base64decode($server['advanced']));
else
$advanced_txt = "";
foreach($server_ports as $pport)