mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-18 01:54:23 +01:00
fix: prevent folder downloads from exposing GitHub metadata
This commit is contained in:
1 parent
4834289c8e
commit
7c7caa845c
6 files changed
+115
-8
No files matched your search
@@ -115,6 +115,7 @@ router.get(
|
||||
anonymizedPath,
|
||||
});
|
||||
const originalPath = await f.originalPath();
|
||||
await f.assertContentFile();
|
||||
if (!f.isFileSupported()) {
|
||||
throw new AnonymousError("file_not_supported", {
|
||||
httpStatus: 403,
|
||||
|
||||
Reference in new issue
Block a user