DescriptionFix an issue that download filename from content disposition is not sanitized
The filename from content disposition may not be sanitized.
This change uses net::GetSuggestedFileName() to sanitize the filename
before passing it to java.
Also, there is no need to call URLUtil.guessFileName() since
GetSuggestedFileName() will always return a non-null value.
BUG=570750
Committed: https://crrev.com/168f723d0f0ce60d92a6307c754181f6d8644583
Cr-Commit-Position: refs/heads/master@{#377447}
Patch Set 1 #
Total comments: 6
Patch Set 2 : remove unused variable #Patch Set 3 : pass localized default download file name #
Total comments: 3
Messages
Total messages: 19 (5 generated)
|