-
Notifications
You must be signed in to change notification settings - Fork 17
send() with filename, which contains spaces works wrong in Firefox #14
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
Comments
Another and better way is to add double quotes according to RFC: https://www.ietf.org/rfc/rfc2231.txt
|
Looks reasonable to me. I just wonder if we really also need the extra
We simply forgot to add them in #7. Does it also work for you if you only add double quotes? Sidenote: Actually I'm also a little surprised that Firefox still uses the first line without encoding details. I would have expected that any modern browser can understand the second variant. |
Yes, double quotes work fine in Firefox |
Issue #14 Fix filenames with spaces
Great. I just released 1.1.4 containing this fix. Thanks for bringing this up. |
If $filename contains spaces (e.g. "Some cool file.doc"), then in Firefox it saves with only first part of name (in the case of example 'Some').
My found quick fix:
WAS:
BECOME
The text was updated successfully, but these errors were encountered: