Zero width space character in downloaded filename displays as '_' using chrome
Reported by
d.quinn1...@gmail.com,
Jun 11 2018
|
||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36
Steps to reproduce the problem:
1. Create a text file give it any name, but ensure it starts with at least 1 zero width space character
(قصيدة.txt is an example, please note when I pasted this in that filename starts with 3 zero width space characters, whether these will remain once I've posted this I can't say)
2. Upload that file to google drive or somehow make it available to download again.
3. Download the file and notice that any zero width space characters that were present are now shown as underscore characters
Notes:
My actual use case for this in a .NET app. I am returning the content disposition header with a value in this format
' attachment; filename*=UTF-8''Uri.EscapeUriString({filename}) '
In that format is works in Firefox, IE and Edge. And as I've mentioned in the steps above the problem can be reproduced in google driv
What is the expected behavior?
For the file to download not display the zero width space characters ie. 'قصيدة.{extension}'
What went wrong?
The file was downloaded as '___قصيدة.{extension}'. Displayed the zero width space characters as underscores
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 67.0.3396.79 Channel: stable
OS Version: 10.0
Flash Version: N/A
,
Jun 12 2018
,
Jun 14 2018
Able to reproduce the issue on chrome reported version# 67.0.3396.79, latest stable# 67.0.3396.87 and latest chrome# 69.0.3457.0 using Windows-10, Ubuntu 14.04 and Mac 10.12.6. As this issue is seen from M-60(60.0.3112.0), hence considering this issue as Non-Regression and Marking it as Untriaged. Thanks!
,
Jun 21 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by dtapu...@chromium.org
, Jun 11 2018