From 05b0510a62bcc1da9841e981a52212477ad01c0e Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 7 May 2014 16:26:11 -0400 Subject: Fix call-time pass-by-reference in HAVP, bump --- config/havp/havp.inc | 6 +++--- config/havp/havp.xml | 6 +++--- config/havp/havp_avset.xml | 4 ++-- config/havp/havp_fscan.xml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'config/havp') diff --git a/config/havp/havp.inc b/config/havp/havp.inc index 29a109ba..f6e37a3b 100644 --- a/config/havp/havp.inc +++ b/config/havp/havp.inc @@ -234,11 +234,11 @@ function havp_deinstall() # ============================================================================== # before form # ------------------------------------------------------------------------------ -function havp_before_form($pkg) +function havp_before_form(&$pkg) { } # ------------------------------------------------------------------------------ -function havp_fscan_before_form($pkg) +function havp_fscan_before_form(&$pkg) { if(is_array($pkg['fields']['field'])) { foreach($pkg['fields']['field'] as $key => $field) { @@ -252,7 +252,7 @@ function havp_fscan_before_form($pkg) # ------------------------------------------------------------------------------ # validation # ------------------------------------------------------------------------------ -function havp_validate_settings($post, $input_errors) +function havp_validate_settings($post, &$input_errors) { $submit = isset($_GET['submit']) ? $_GET['submit'] : $_POST['submit']; diff --git a/config/havp/havp.xml b/config/havp/havp.xml index 1e50eb5e..47611030 100644 --- a/config/havp/havp.xml +++ b/config/havp/havp.xml @@ -3,7 +3,7 @@ havp Antivirus: HTTP proxy (havp + clamav) Status - 0.88_03 + 1.02 /usr/local/pkg/havp.inc Antivirus @@ -288,10 +288,10 @@ - havp_before_form(&$pkg); + havp_before_form($pkg); - havp_validate_settings($_POST, &$input_errors); + havp_validate_settings($_POST, $input_errors); havp_resync(); diff --git a/config/havp/havp_avset.xml b/config/havp/havp_avset.xml index 3cea9b76..3d4372f4 100644 --- a/config/havp/havp_avset.xml +++ b/config/havp/havp_avset.xml @@ -92,10 +92,10 @@ - havp_before_form(&$pkg); + havp_before_form($pkg); - havp_validate_settings($_POST, &$input_errors); + havp_validate_settings($_POST, $input_errors); havp_avset_resync(); diff --git a/config/havp/havp_fscan.xml b/config/havp/havp_fscan.xml index 1f0ca8dc..91dce25c 100644 --- a/config/havp/havp_fscan.xml +++ b/config/havp/havp_fscan.xml @@ -36,10 +36,10 @@ - havp_fscan_before_form(&$pkg); + havp_fscan_before_form($pkg); - havp_validate_settings($_POST, &$input_errors); + havp_validate_settings($_POST, $input_errors); -- cgit v1.2.3