diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-12-28 17:37:33 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-12-28 17:37:33 -0500 |
commit | fe953aeb3c27e901518a0e6f37b14780020d0fc9 (patch) | |
tree | 5a166d9f24215b9dcffe758b2f8d6c85e9203b84 /config/haproxy/haproxy_frontends_edit.php | |
parent | 0cf6c383af539c22684c1a4769cfcc6008ba4e58 (diff) | |
download | pfsense-packages-fe953aeb3c27e901518a0e6f37b14780020d0fc9.tar.gz pfsense-packages-fe953aeb3c27e901518a0e6f37b14780020d0fc9.tar.bz2 pfsense-packages-fe953aeb3c27e901518a0e6f37b14780020d0fc9.zip |
Use base64encode() and base64decode()
Diffstat (limited to 'config/haproxy/haproxy_frontends_edit.php')
-rwxr-xr-x | config/haproxy/haproxy_frontends_edit.php | 4 |
1 files changed, 2 insertions, 2 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; |