Defect #16711

Non-ascii attachment file name get corrupted in IE11

Added by Go MAEDA about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Attachments
Target version:2.4.6
Resolution:Fixed Affected version:

Description

To avoid non-ascii file name corruption in Internet Explorer 11, filename_for_content_disposition method in ApplicationController should search not only "MSIE" but also "Trident" because There is no "MSIE" in IE11's user-agent string.

<=IE10:
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)

IE11 (gives false name):
Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko

IE11_non_ascii_file_name_corruption_fix.diff Magnifier (603 Bytes) Go MAEDA, 2014-04-17 15:11

日本語.txt Magnifier (11 Bytes) Toshi MARUYAMA, 2014-04-17 20:10

ie11.png (15.8 KB) Toshi MARUYAMA, 2014-04-17 20:10


Related issues

Related to Redmine - Defect #21656: Fix Non ASCII attachment filename encoding broken (MOJIBA... Closed

Associated revisions

Revision 13101
Added by Toshi MARUYAMA about 4 years ago

fix non-ascii attachment file name get corrupted in IE11 (#16711)

Contributed by Go MAEDA.

Revision 13102
Added by Toshi MARUYAMA about 4 years ago

Merged r13101 from trunk to 2.5-stable (#16711)

fix non-ascii attachment file name get corrupted in IE11.

Contributed by Go MAEDA.

Revision 13103
Added by Toshi MARUYAMA about 4 years ago

Merged r13101 from trunk to 2.4-stable (#16711)

fix non-ascii attachment file name get corrupted in IE11.

Contributed by Go MAEDA.

History

#1 Updated by Toshi MARUYAMA about 4 years ago

  • Category set to Attachments
  • Target version set to 2.4.6

#2 Updated by Toshi MARUYAMA about 4 years ago

http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx#uaString

The compatible ("compatible") and browser ("MSIE") tokens have been removed.

#3 Updated by Toshi MARUYAMA about 4 years ago

#4 Updated by Toshi MARUYAMA about 4 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

Committed, thanks.

#5 Updated by Go MAEDA over 2 years ago

  • Related to Defect #21656: Fix Non ASCII attachment filename encoding broken (MOJIBAKE) in Microsoft Edge Explorer added

Also available in: Atom PDF