aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-legacy/haproxy_global.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-05-09 14:55:40 -0400
committerjim-p <jimp@pfsense.org>2014-05-16 15:46:13 -0400
commitf2a1fd070eaab580768132d27bb41da9946e0a9a (patch)
treeacfc1247618e610de63a3e40b7621602b1f5c0ed /config/haproxy-legacy/haproxy_global.php
parent7051ab51a12cc3b94adb987d99a04126dd67b3a7 (diff)
downloadpfsense-packages-f2a1fd070eaab580768132d27bb41da9946e0a9a.tar.gz
pfsense-packages-f2a1fd070eaab580768132d27bb41da9946e0a9a.tar.bz2
pfsense-packages-f2a1fd070eaab580768132d27bb41da9946e0a9a.zip
Fix call-time pass-by-reference in haproxy-legacy, bump
Diffstat (limited to 'config/haproxy-legacy/haproxy_global.php')
-rwxr-xr-xconfig/haproxy-legacy/haproxy_global.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/haproxy-legacy/haproxy_global.php b/config/haproxy-legacy/haproxy_global.php
index 509fdfe2..4ea03c75 100755
--- a/config/haproxy-legacy/haproxy_global.php
+++ b/config/haproxy-legacy/haproxy_global.php
@@ -57,7 +57,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.";