commit | 168f723d0f0ce60d92a6307c754181f6d8644583 | [log] [tgz] |
---|---|---|
author | qinmin <qinmin@chromium.org> | Thu Feb 25 01:10:38 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 25 01:12:32 2016 |
tree | 7c84349e028702983e118a17a5d53799d799d514 | |
parent | bb6442dcb5f878e7239b0373dec21f1f67f15195 [diff] |
Fix 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 Review URL: https://codereview.chromium.org/1717783002 Cr-Commit-Position: refs/heads/master@{#377447}