-
Notifications
You must be signed in to change notification settings - Fork 104
download file parse filename add RFC 5987 support #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
support percent-encoded filename Signed-off-by: zuisong <[email protected]>
d282abe
to
3f5de8e
Compare
Sanitizes filenames by removing or replacing potentially problematic characters Makes filenames safe for cross-platform use Prevents directory traversal attacks (e.g., "../../../")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
😁 Thanks, I've incorporated all your suggested improvements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great! sanitize-filename
is also a good addition.
One more tweak and then I think this is ready.
…sponding test cases. Signed-off-by: zuisong <[email protected]>
support percent-encoded filename
close #415