diff options
author | jim-p <jimp@pfsense.org> | 2014-05-07 16:21:03 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-05-07 16:21:03 -0400 |
commit | 7d06b83962bef36aa6c33c748724a85b294964e2 (patch) | |
tree | 7ac0688be613614fe01dc9f0a3d52944540a9ab4 /config/varnish3/varnish.inc | |
parent | 67718c4fbf21473297b79c9710b7d65720c80d29 (diff) | |
download | pfsense-packages-7d06b83962bef36aa6c33c748724a85b294964e2.tar.gz pfsense-packages-7d06b83962bef36aa6c33c748724a85b294964e2.tar.bz2 pfsense-packages-7d06b83962bef36aa6c33c748724a85b294964e2.zip |
Fix call-time pass-by-reference in Varnish 2.x, bump
Diffstat (limited to 'config/varnish3/varnish.inc')
-rw-r--r-- | config/varnish3/varnish.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc index 2a986710..4883af15 100644 --- a/config/varnish3/varnish.inc +++ b/config/varnish3/varnish.inc @@ -41,7 +41,7 @@ else define('VARNISH_LOCALBASE','/usr/local'); -function varnish_settings_post_validate($post, $input_errors) { +function varnish_settings_post_validate($post, &$input_errors) { if( !is_numeric($post['storagesize'])) $input_errors[] = "A valid number is required for the field 'Storage size'"; if($post['listeningport'] && !is_numeric($post['listeningport'])) @@ -64,7 +64,7 @@ function varnish_settings_post_validate($post, $input_errors) { } -function varnish_lb_directors_post_validate($post, $input_errors) { +function varnish_lb_directors_post_validate($post, &$input_errors) { if (preg_match("/[^a-zA-Z0-9]/", $post['directorname'])){ $input_errors[] = "The directorname name must only contain the characters a-Z or 0-9"; } @@ -78,7 +78,7 @@ function varnish_lb_directors_post_validate($post, $input_errors) { $input_errors[] = "A valid number with a time reference is required for the field 'Req grace'"; } -function varnish_backends_post_validate($post, $input_errors) { +function varnish_backends_post_validate($post, &$input_errors) { if (!$post['backendname'] || preg_match("/[^a-zA-Z0-9]/", $post['backendname'])) $input_errors[] = "The backend name must only contain the characters a-Z or 0-9"; if(!is_ipaddr($post['ipaddress'])) |