fix: scanSVG incorrect ext reference (#4825)

This commit is contained in:
NGPixel 2021-12-26 17:29:45 -05:00
parent 67c1be75f3
commit e84c15b926
No known key found for this signature in database
GPG Key ID: 8FDA2F1757F60D63

View File

@ -104,7 +104,7 @@ module.exports = class Asset extends Model {
WIKI.config.uploads.scanSVG &&
(
opts.mimetype.toLowerCase().startsWith('image/svg') ||
opts.ext.toLowerCase() === 'svg'
fileInfo.ext.toLowerCase() === '.svg'
)
) {
const svgSanitizeJob = await WIKI.scheduler.registerJob({