We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Related to #344 and #344
public Response filenameHeader(String filename) { if (filename != null && !filename.isEmpty()) { header(HttpConstants.Header.CONTENT_DISPOSITION, "attachment; filename=\"" + filename + "\""); } else { header(HttpConstants.Header.CONTENT_DISPOSITION, "attachment; filename=\"\""); } return this; }
Does not escape the filename. For example " inside it will break header parsing for the client.
"
See https://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http
Also FileItem does not un-escape the filename upon reading the Content-Disposition Header.
The text was updated successfully, but these errors were encountered:
@lambdaupb Can you supply a PR with a solution to this problem? Thanks!
Sorry, something went wrong.
No branches or pull requests
Related to #344 and #344
Does not escape the filename.
For example
"
inside it will break header parsing for the client.See https://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http
Also FileItem does not un-escape the filename upon reading the Content-Disposition Header.
The text was updated successfully, but these errors were encountered: