Wordfence Security – Firewall & Malware Scan - Version 1.5.1

Version Description

  • Fixed a bug that caused scans to crash when permissions don't allow a directory to be read.
Download this release

Release Info

Developer mmaunder
Plugin Icon 128x128 Wordfence Security – Firewall & Malware Scan
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.4.8 to 1.5.1

Files changed (3) hide show
  1. lib/wordfenceHash.php +5 -0
  2. readme.txt +4 -1
  3. wordfence.php +1 -1
lib/wordfenceHash.php CHANGED
@@ -16,6 +16,10 @@ class wordfenceHash {
16
if($path[strlen($path) - 1] != '/'){
17
$path .= '/';
18
}
19
$files = scandir($path);
20
foreach($files as $file){
21
if(sizeof($only) > 0 && (! in_array($file, $only))){
@@ -31,6 +35,7 @@ class wordfenceHash {
31
if(substr($path, -3, 3) == '/..' || substr($path, -2, 2) == '/.'){
32
return;
33
}
34
if(is_dir($path)){
35
$this->totalDirs++;
36
if($path[strlen($path) - 1] != '/'){
16
if($path[strlen($path) - 1] != '/'){
17
$path .= '/';
18
}
19
+ if(! is_readable($path)){
20
+ wordfence::status(1, 'error', "Could not read directory $path to do sacn.");
21
+ exit();
22
+ }
23
$files = scandir($path);
24
foreach($files as $file){
25
if(sizeof($only) > 0 && (! in_array($file, $only))){
35
if(substr($path, -3, 3) == '/..' || substr($path, -2, 2) == '/.'){
36
return;
37
}
38
+ if(! is_readable($path)){ return; } //Applies to files and dirs
39
if(is_dir($path)){
40
$this->totalDirs++;
41
if($path[strlen($path) - 1] != '/'){
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mmaunder
3
Tags: wordpress, security, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure
4
Requires at least: 3.3.1
5
Tested up to: 3.3.2
6
- Stable tag: 1.4.8
7
8
Wordfence Security is a free enterprise class security plugin that includes a firewall, virus scanning, real-time traffic with geolocation and more.
9
@@ -152,6 +152,9 @@ or a theme, because often these have been updated to fix a security hole.
152
5. If you're technically minded, this is the under-the-hood view of Wordfence options where you can fine-tune your security settings.
153
154
== Changelog ==
155
= 1.4.8 =
156
* WP repo didn't deploy the zip file correctly so recreating the version tag.
157
3
Tags: wordpress, security, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure
4
Requires at least: 3.3.1
5
Tested up to: 3.3.2
6
+ Stable tag: 1.5.1
7
8
Wordfence Security is a free enterprise class security plugin that includes a firewall, virus scanning, real-time traffic with geolocation and more.
9
152
5. If you're technically minded, this is the under-the-hood view of Wordfence options where you can fine-tune your security settings.
153
154
== Changelog ==
155
+ = 1.5.1 =
156
+ * Fixed a bug that caused scans to crash when permissions don't allow a directory to be read.
157
+
158
= 1.4.8 =
159
* WP repo didn't deploy the zip file correctly so recreating the version tag.
160
wordfence.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Wordfence Security
4
Plugin URI: http://wordfence.com/
5
Description: WordPress Security - Anti-virus and Firewall security plugin for WordPress
6
Author: Mark Maunder
7
- Version: 1.4.8
8
Author URI: http://wordfence.com/
9
*/
10
require_once('lib/wordfenceConstants.php');
4
Plugin URI: http://wordfence.com/
5
Description: WordPress Security - Anti-virus and Firewall security plugin for WordPress
6
Author: Mark Maunder
7
+ Version: 1.5.1
8
Author URI: http://wordfence.com/
9
*/
10
require_once('lib/wordfenceConstants.php');