BUG Content-Disposition header breaks in Firefox (#4087)

This commit is contained in:
Anton Smith 2016-09-29 13:25:14 +13:00 committed by Sam Minnée
parent 796ca2171d
commit ae4108bf00
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ class SS_HTTPRequest implements ArrayAccess {
$response = new SS_HTTPResponse($fileData);
$response->addHeader("Content-Type", "$mimeType; name=\"" . addslashes($fileName) . "\"");
// Note a IE-only fix that inspects this header in HTTP::add_cache_headers().
$response->addHeader("Content-Disposition", "attachment; filename=" . addslashes($fileName));
$response->addHeader("Content-Disposition", "attachment; filename=\"" . addslashes($fileName) . "\"");
$response->addHeader("Content-Length", strlen($fileData));
return $response;