Skip to content

Commit

Permalink
Merge pull request #155 from waifuvault/remove-attatchment
Browse files Browse the repository at this point in the history
do not expose hidden filenames
  • Loading branch information
VictoriqueMoe authored Jun 5, 2024
2 parents 101487d + 04b3b65 commit 5cdcb61
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 5cdcb61

Please sign in to comment.