aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-stable/haproxy_global.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-20 15:57:24 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-20 15:57:24 -0300
commit695190dc823e44c3c86804f4e291b1585125dd0b (patch)
tree5ec6cae88de9026db603a099803c759ac82aa5c5 /config/haproxy-stable/haproxy_global.php
parent5d02450ddf9b8628a7e4bc6052df7e6b76ff9502 (diff)
downloadpfsense-packages-695190dc823e44c3c86804f4e291b1585125dd0b.tar.gz
pfsense-packages-695190dc823e44c3c86804f4e291b1585125dd0b.tar.bz2
pfsense-packages-695190dc823e44c3c86804f4e291b1585125dd0b.zip
Fix call-time pass by reference for haproxy-stable package
Diffstat (limited to 'config/haproxy-stable/haproxy_global.php')
-rwxr-xr-xconfig/haproxy-stable/haproxy_global.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/haproxy-stable/haproxy_global.php b/config/haproxy-stable/haproxy_global.php
index c8b05d52..47c8d1ec 100755
--- a/config/haproxy-stable/haproxy_global.php
+++ b/config/haproxy-stable/haproxy_global.php
@@ -56,7 +56,11 @@ if ($_POST) {
$reqdfieldsn = explode(",", "Maximum connections");
}
- do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
+ $pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
+ if ($pf_version < 2.1)
+ $input_errors = eval('do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); return $input_errors;');
+ else
+ do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
if ($_POST['maxconn'] && (!is_numeric($_POST['maxconn'])))
$input_errors[] = "The maximum number of connections should be numeric.";