-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
actix-files: Properly handle newlines in file names #3235
Conversation
8cc549f
to
9284200
Compare
9284200
to
c881c7b
Compare
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 one, thanks 👍🏻
released in v0.6.4 |
Thanks @svenstaro, that fixes my specific issue in the latest miniserve but I've just tried testing other whitespace characters such as:
These still result in a server error:
There may be more cases, I haven't tried the whole ascii table. |
I was unaware that these are also legal white spaces for common filesystems! Maybe @Dialga you could go ahead and amend my fix to contain other legal white spaces as well? Should be super straight forward to take my work and build on that by adding a few |
Hi I'm a noob with rust, but I'll take a shot! |
Just check what I did and then do more of that. Don't forget the test case! |
PR Type
Bug Fix
PR Checklist
Overview
This used to result in the issue I reported here: #3234
This shouldn't break anything as so far it was just a 500 error. Afterwards, it should be fixed. On Windows where newlines are illegal (I think), this shouldn't even get there.
Closes #3234.