mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Updated uploadController.js
This commit is contained in:
parent
730836ccaa
commit
b2d9efa744
@ -212,7 +212,7 @@ uploadsController.actuallyUploadByUrl = async (req, res, user, albumid) => {
|
||||
const original = path.basename(url).split(/[?#]/)[0]
|
||||
const extension = path.extname(original)
|
||||
if (uploadsController.isExtensionFiltered(extension)) {
|
||||
return erred(`${extension.substr(1).toUpperCase()} files are not permitted for security reasons.`)
|
||||
return erred(`${extension.substr(1).toUpperCase()} files are not permitted due to security reasons.`)
|
||||
}
|
||||
|
||||
const head = await snekfetch.head(url)
|
||||
|
Loading…
Reference in New Issue
Block a user