Unverified Commit e84c15b9 authored by NGPixel's avatar NGPixel

fix: scanSVG incorrect ext reference (#4825)

parent 67c1be75
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment