Skip to content
Snippets Groups Projects
Commit 158dd49b authored by syuilo's avatar syuilo
Browse files
parent 57d994db
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ export async function proxyMedia(ctx: Koa.Context) {
const { mime, ext } = await detectType(path);
if (!mime.startsWith('image/')) throw 403;
if (!FILE_TYPE_BROWSERSAFE.includes(mime)) throw 403;
let image: IImage;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment