Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

63061: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3)
      62574: Merged V4.1-BUG-FIX (4.1.8) to V4.2-BUG-FIX (4.2.2)
         62526:  Merged DEV to V4.1-BUG-FIX (4.1.8)
            59843: MNT-2258: IE's File Download box does not show a filename correctly when that have non-ASCII characters in the filename
              - Use legacy filename token with encoded value in "Content-Disposition" header on file download operation for IE7 too.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@64249 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-03-14 15:28:09 +00:00
parent c5ebe07269
commit 957c03475d

View File

@@ -634,8 +634,8 @@ public class ContentStreamer implements ResourceLoaderAware
else
{
String userAgent = req.getHeader(HEADER_USER_AGENT);
boolean isMSIE8 = (null != userAgent) && userAgent.contains("MSIE 8");
if (isMSIE8)
boolean isLegacy = (null != userAgent) && (userAgent.contains("MSIE 8") || userAgent.contains("MSIE 7"));
if (isLegacy)
{
headerValue += "; filename=\"" + WebDAVHelper.encodeURL(attachFileName);
}