From 617cbc88fd5942ce65ac0acf7178494b336d6957 Mon Sep 17 00:00:00 2001 From: Glomberg Date: Thu, 19 Dec 2024 10:44:06 +0300 Subject: [PATCH 1/3] Fix. Vulnerability alarm. False detected vulnerabilities fixed. --- .../VulnerabilityAlarm/VulnerabilityAlarmService.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php b/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php index 4c7216d9..7877bd0c 100755 --- a/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php +++ b/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php @@ -287,9 +287,15 @@ public static function getModules() ]; } - foreach ($plugins as $plugin) { + foreach ($plugins as $plugin_file => $plugin) { + $plugin_dirname = dirname( plugin_basename( $plugin_file ) ); + if ( '.' !== $plugin_dirname && ! str_contains( $plugin_dirname, '/' ) ) { + $plugin_slug = sanitize_title($plugin_dirname); + } else { + $plugin_slug = sanitize_title($plugin['Name']); + } $modules['plugins'][] = [ - sanitize_title($plugin['TextDomain'], $plugin['Name']), + $plugin_slug, $plugin['Version'] ]; } From 042f8e045c9cc244da4330735cf55de814b9c6db Mon Sep 17 00:00:00 2001 From: Glomberg Date: Thu, 19 Dec 2024 11:04:06 +0300 Subject: [PATCH 2/3] Fix. Code. Code style fixed. --- .../SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php b/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php index 7877bd0c..9debcd75 100755 --- a/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php +++ b/lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php @@ -288,8 +288,8 @@ public static function getModules() } foreach ($plugins as $plugin_file => $plugin) { - $plugin_dirname = dirname( plugin_basename( $plugin_file ) ); - if ( '.' !== $plugin_dirname && ! str_contains( $plugin_dirname, '/' ) ) { + $plugin_dirname = dirname(plugin_basename($plugin_file)); + if ( '.' !== $plugin_dirname && strpos($plugin_dirname, '/') === false ) { $plugin_slug = sanitize_title($plugin_dirname); } else { $plugin_slug = sanitize_title($plugin['Name']); From 47f96921565856b6fd9edc461a39d75b252f1286 Mon Sep 17 00:00:00 2001 From: Glomberg Date: Mon, 23 Dec 2024 10:04:42 +0300 Subject: [PATCH 3/3] Version: 2.148.1 and changelog updated. --- readme.txt | 5 ++++- security-malware-firewall.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index ebf0ef64..3544d3c1 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: security, firewall, malware, wordpress security, brute force Requires at least: 5.0 Tested up to: 6.7 Requires PHP: 5.6 -Stable tag: 2.148 +Stable tag: 2.148.1 License: GPLv2 License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -339,6 +339,9 @@ This is required for the Security FireWall to function properly. Plugins that ar == Changelog == += 2.148.1 Dec 23 2024 +* Fix. Vulnerability alarm. False detected vulnerabilities fixed. + = 2.148 Dec 09 2024 * New. Plugin settings. Navigation bar implemented for settings general. * Upd. Code. Removed the plugin dependency on jQuery for site public pages. diff --git a/security-malware-firewall.php b/security-malware-firewall.php index 88311af6..e0df2313 100644 --- a/security-malware-firewall.php +++ b/security-malware-firewall.php @@ -5,7 +5,7 @@ Plugin URI: https://wordpress.org/plugins/security-malware-firewall/ Description: Security & Malware scan by CleanTalk to protect your website from online threats and viruses. IP/Country FireWall, Web application FireWall. Detailed stats and logs to have full control. Author: CleanTalk Security -Version: 2.148 +Version: 2.148.1 Author URI: https://cleantalk.org Text Domain: security-malware-firewall Domain Path: /i18n