From 0b3ff3cce00bca4d03c3929770006439e281f430 Mon Sep 17 00:00:00 2001 From: Glomberg Date: Fri, 24 May 2024 14:07:58 +0300 Subject: [PATCH] Fix: Scanner. Auto sending to the analysis notice added to the `Suspicious` list. --- inc/spbc-settings.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/spbc-settings.php b/inc/spbc-settings.php index a2c954965..68f2bf803 100644 --- a/inc/spbc-settings.php +++ b/inc/spbc-settings.php @@ -5444,6 +5444,8 @@ function spbc__key_not_valid_tab_html() */ function spbc__get_accordion_tab_info_block_html($for) { + global $spbc; + $button_div = ''; $show_exclaim_triangle = false; @@ -5474,6 +5476,13 @@ function spbc__get_accordion_tab_info_block_html($for) case 'suspicious': $info_block_out = '

' . __('If you are not sure of the results and cannot assess for yourself whether these files are dangerous or not, then we recommend sending these files to the cloud for analysis. Select suspicious files and click "Send for Analysis".', 'security-malware-firewall') . '

'; $info_block_out .= '

' . __('Please, note, the size of file to send is restricted with 1024 Kb.', 'security-malware-firewall') . '

'; + if ( (int) $spbc->settings['scanner__schedule_send_heuristic_suspicious_files'] === 2 ) { + $info_block_out .= '

' + . sprintf('Suspicious files are sent to the CleanTalk cloud to be analyzed by Cloud Malware scanner. If you do not want to send it to the cloud, turn this option off in the plugin %s settings %s', + '', + '') + . '

'; + } $classes = 'notice notice-info'; break; case 'analysis':