Skip to content

Commit

Permalink
do not expose hidden filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriqueMoe committed Jun 5, 2024
1 parent 101487d commit 04b3b65
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/controllers/serve/FileServerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ export class FileServerController {
res.contentType("application/octet-stream");
}

if (entry.settings?.hideFilename) {
res.attachment(entry.fullFileNameOnSystem);
} else {
res.attachment(entry.originalFileName);
}

res.send(buff);
}

Expand Down

0 comments on commit 04b3b65

Please sign in to comment.