fix: prevent folder downloads from exposing GitHub metadata

This commit is contained in:
Codex committed 2026-11-09 10:45:24 +00:00
1 parent 4834289c8e
commit 7c7caa845c
6 files changed
+115 -8

No files matched your search

+1
View File
@@ -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,