aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy.inc
diff options
context:
space:
mode:
authorPaul Venezia <pvenezia@pvenezia.com>2013-07-17 18:36:58 -0400
committerPaul Venezia <pvenezia@pvenezia.com>2013-07-17 18:36:58 -0400
commit7b6ce87468914d5e18d316a6f0fe49af516fa64c (patch)
tree99969da1eb1929a94042f1a8b4995ceefaea470a /config/haproxy-devel/haproxy.inc
parentefc17dcbcfc1a0a3378f23e46e43124a63e3a31f (diff)
downloadpfsense-packages-7b6ce87468914d5e18d316a6f0fe49af516fa64c.tar.gz
pfsense-packages-7b6ce87468914d5e18d316a6f0fe49af516fa64c.tar.bz2
pfsense-packages-7b6ce87468914d5e18d316a6f0fe49af516fa64c.zip
Fixed cosmetic table display bug in haproxy_listeners.php, and DOS newline bug in advanced passthru config writes in haproxy.inc
Diffstat (limited to 'config/haproxy-devel/haproxy.inc')
-rw-r--r--config/haproxy-devel/haproxy.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc
index 3afefb49..f871ddd7 100644
--- a/config/haproxy-devel/haproxy.inc
+++ b/config/haproxy-devel/haproxy.inc
@@ -459,7 +459,7 @@ function write_backend($fd, $name, $pool, $frontend) {
$adv_be = explode("\n", base64_decode($pool['advanced_backend']));
foreach($adv_be as $adv_line) {
if ($adv_line != "") {
- fwrite($fd, "\t" . $adv_line . "\n");
+ fwrite($fd, "\t" . str_replace("\r", "", $adv_line) . "\n");
}
}
}
@@ -573,7 +573,8 @@ function haproxy_writeconf($configfile) {
if($a_global['advanced']) {
$adv = explode("\n", base64_decode($a_global['advanced']));
foreach($adv as $adv_line) {
- fwrite($fd, "\t" . $adv_line . "\n");
+ fwrite($fd, "\t" . str_replace("\r", "", $adv_line) . "\n");
+
}
}
fwrite ($fd, "\n");
@@ -687,7 +688,7 @@ function haproxy_writeconf($configfile) {
$advanced = explode("\n", base64_decode($bind['advanced']));
foreach($advanced as $adv_line) {
if ($adv_line != "") {
- fwrite($fd, "\t" . $adv_line . "\n");
+ fwrite($fd, "\t" . str_replace("\r", "", $adv_line) . "\n");
}
}
}