Comparing version 0.8.2 to 0.8.3
13
index.js
@@ -15,2 +15,3 @@ /*! | ||
var os = require('os'); | ||
var node_path = require('path'); | ||
@@ -535,6 +536,14 @@ // **************************************************************************** | ||
var file = files.pop(); | ||
file = node_path.join(path, file); | ||
fs.stat(file, function(err, info) { | ||
if (info.isFile()) good_files.push(file); | ||
if (!err) { | ||
if (info.isFile()) { | ||
good_files.push(file); | ||
} | ||
} else { | ||
if (self.settings.debug_mode) | ||
console.log("node-clam: Error scanning file in directory: ", err); | ||
} | ||
get_file_stats(); | ||
}); | ||
}); | ||
} else { | ||
@@ -541,0 +550,0 @@ self.scan_files(good_files, end_file, file_cb); |
{ | ||
"name": "clamscan", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"author": "Kyle Farris <kfarris@chomponllc.com> (http://chomponllc.com)", | ||
@@ -11,3 +11,3 @@ "description": "Use Node JS to scan files on your server with ClamAV's clamscan binary or clamdscan daemon. This is especially useful for scanning uploaded files provided by un-trusted sources.", | ||
"urg <Patrick McAndrew>", | ||
"SaltwaterC <Ștefan Ruso>" | ||
"SaltwaterC <Ștefan Rusu>" | ||
], | ||
@@ -14,0 +14,0 @@ "scripts": { |
@@ -5,2 +5,8 @@ ## NodeJS Clamscan Virus Scanning Utility | ||
## !!IMPORTANT!! | ||
If you are using a version prior to 0.8.2, please upgrade! There was a security vulnerability in previous versions that allows a malicious user to execute code on your server. Specific details on how the attack could be implemented will not be disclosed here. Please update to 0.8.2 or greater ASAP. No breaking changes are included, only the security patch. | ||
All other versions in NPM have been deprecated. | ||
## Dependencies | ||
@@ -7,0 +13,0 @@ |
@@ -6,3 +6,3 @@ var fs = require('fs'); | ||
var which = function (bin) { | ||
var dir, file; | ||
var i, file; | ||
var path = process.env.PATH.split(p.delimiter); | ||
@@ -9,0 +9,0 @@ for (i in path) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76692
1188
279