Skip to content

Sanitize downloaded filenames#8

Open
dragetd wants to merge 1 commit into
dgrr:mainfrom
dragetd:patch-1
Open

Sanitize downloaded filenames#8
dragetd wants to merge 1 commit into
dgrr:mainfrom
dragetd:patch-1

Conversation

@dragetd
Copy link
Copy Markdown

@dragetd dragetd commented May 9, 2026

This makes sure, the filenames sent by the server are sanitized from path separators and directory traversals (. / ..), defaulting to 'document' if nothing is left.

Fixes #7

This makes sure, the filenames sent by the server are sanitized from path separators and directory traversals (. / ..), defaulting to 'document' if nothing is left.

Fixes dgrr#7
@dragetd
Copy link
Copy Markdown
Author

dragetd commented May 9, 2026

My rust knowledge is limited.

Transparency disclaimer: Had Juni (IDEA Coding agent) help me with the lambda functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate filenames for downloads

1 participant