Skip to content

Commit

Permalink
Fix: Scanner. Auto sending to the analysis notice added to the `Suspi…
Browse files Browse the repository at this point in the history
…cious` list.
  • Loading branch information
Glomberg committed May 24, 2024
1 parent a07267e commit 0b3ff3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inc/spbc-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -5474,6 +5476,13 @@ function spbc__get_accordion_tab_info_block_html($for)
case 'suspicious':
$info_block_out = '<p>' . __('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') . '</p>';
$info_block_out .= '<p>' . __('Please, note, the size of file to send is restricted with 1024 Kb.', 'security-malware-firewall') . '</p>';
if ( (int) $spbc->settings['scanner__schedule_send_heuristic_suspicious_files'] === 2 ) {
$info_block_out .= '<p>'
. 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',
'<a href="options-general.php?page=spbc&spbc_tab=settings_general#spbc_setting_scanner__heuristic_analysis">',
'</a>')
. '</p>';
}
$classes = 'notice notice-info';
break;
case 'analysis':
Expand Down

0 comments on commit 0b3ff3c

Please sign in to comment.