mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 11:16:36 +00:00
server: torrents: returns when access denied in /mediainfo
Fixes: ebb4927b
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user