mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Content-Disposition header breaks in Firefox (#4087)
This commit is contained in:
parent
796ca2171d
commit
ae4108bf00
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user