From 57e62273105bb2477782437f853a347fe6103c9b Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Mon, 7 Dec 2020 01:44:52 +0800 Subject: [PATCH] server: torrents: returns when access denied in /mediainfo Fixes: ebb4927b --- server/routes/api/torrents.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/routes/api/torrents.ts b/server/routes/api/torrents.ts index d944d344..af6c0a4d 100644 --- a/server/routes/api/torrents.ts +++ b/server/routes/api/torrents.ts @@ -679,6 +679,7 @@ router.get( const contentPath = fs.existsSync(path.join(directory, name)) ? path.join(directory, name) : directory; if (!isAllowedPath(contentPath)) { callback(null, accessDeniedError()); + return; } try {