diff options
Diffstat (limited to 'config/havp')
-rw-r--r-- | config/havp/havp.inc | 6 | ||||
-rw-r--r-- | config/havp/havp.xml | 14 | ||||
-rw-r--r-- | config/havp/havp_avset.xml | 4 | ||||
-rw-r--r-- | config/havp/havp_fscan.xml | 4 |
4 files changed, 14 insertions, 14 deletions
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 6d991a81..47611030 100644 --- a/config/havp/havp.xml +++ b/config/havp/havp.xml @@ -3,7 +3,7 @@ <name>havp</name> <title>Antivirus: HTTP proxy (havp + clamav)</title> <category>Status</category> - <version>0.88_03</version> + <version>1.02</version> <include_file>/usr/local/pkg/havp.inc</include_file> <menu> <name>Antivirus</name> @@ -18,22 +18,22 @@ <description>Antivirus HTTP proxy Service</description> </service> <additional_files_needed> - <item>http://www.pfsense.com/packages/config/havp/havp.inc</item> + <item>https://packages.pfsense.org/packages/config/havp/havp.inc</item> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> </additional_files_needed> <!--additional_files_needed> - <item>http://www.pfsense.com/packages/config/havp/havp_fscan.xml</item> + <item>https://packages.pfsense.org/packages/config/havp/havp_fscan.xml</item> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> </additional_files_needed--> <additional_files_needed> - <item>http://www.pfsense.com/packages/config/havp/havp_avset.xml</item> + <item>https://packages.pfsense.org/packages/config/havp/havp_avset.xml</item> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> </additional_files_needed> <additional_files_needed> - <item>http://www.pfsense.com/packages/config/havp/antivirus.php</item> + <item>https://packages.pfsense.org/packages/config/havp/antivirus.php</item> <prefix>/usr/local/www/</prefix> <chmod>0755</chmod> </additional_files_needed> @@ -288,10 +288,10 @@ </field> </fields> <custom_php_command_before_form> - havp_before_form(&$pkg); + havp_before_form($pkg); </custom_php_command_before_form> <custom_php_validation_command> - havp_validate_settings($_POST, &$input_errors); + havp_validate_settings($_POST, $input_errors); </custom_php_validation_command> <custom_php_resync_config_command> 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 @@ </field> </fields> <custom_php_command_before_form> - havp_before_form(&$pkg); + havp_before_form($pkg); </custom_php_command_before_form> <custom_php_validation_command> - havp_validate_settings($_POST, &$input_errors); + havp_validate_settings($_POST, $input_errors); </custom_php_validation_command> <custom_php_resync_config_command> 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 @@ </field> </fields> <custom_php_command_before_form> - havp_fscan_before_form(&$pkg); + havp_fscan_before_form($pkg); </custom_php_command_before_form> <custom_php_validation_command> - havp_validate_settings($_POST, &$input_errors); + havp_validate_settings($_POST, $input_errors); </custom_php_validation_command> <custom_php_resync_config_command> </custom_php_resync_config_command> |