mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
refactor: uploadController.js
This commit is contained in:
parent
86c26cb50c
commit
88d32a6dcf
@ -655,7 +655,7 @@ self.scanHelpers.assertFileBypass = data => {
|
||||
return true
|
||||
}
|
||||
|
||||
if (Number.isFinite(data.size) && utils.scan.maxSize && data.size > utils.scan.maxSize) {
|
||||
if (utils.scan.maxSize && Number.isFinite(data.size) && data.size > utils.scan.maxSize) {
|
||||
logger.debug(`[ClamAV]: ${data.filename}: Skipped, size ${data.size} > ${utils.scan.maxSize}`)
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user