mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch '3.1.0' into 3.1
This commit is contained in:
commit
f8eaf81ae2
@ -343,11 +343,14 @@ class HTTP {
|
|||||||
$responseHeaders['Vary'] = 'Cookie, X-Forwarded-Protocol, User-Agent, Accept';
|
$responseHeaders['Vary'] = 'Cookie, X-Forwarded-Protocol, User-Agent, Accept';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if($body) {
|
||||||
// Grab header for checking. Unfortunately HTTPRequest uses a mistyped variant.
|
// Grab header for checking. Unfortunately HTTPRequest uses a mistyped variant.
|
||||||
$contentDisposition = $body->getHeader('Content-disposition');
|
$contentDisposition = $body->getHeader('Content-disposition');
|
||||||
if (!$contentDisposition) $contentDisposition = $body->getHeader('Content-Disposition');
|
if (!$contentDisposition) $contentDisposition = $body->getHeader('Content-Disposition');
|
||||||
|
}
|
||||||
|
|
||||||
if(
|
if(
|
||||||
|
$body &&
|
||||||
Director::is_https() &&
|
Director::is_https() &&
|
||||||
strstr($_SERVER["HTTP_USER_AGENT"], 'MSIE')==true &&
|
strstr($_SERVER["HTTP_USER_AGENT"], 'MSIE')==true &&
|
||||||
strstr($contentDisposition, 'attachment;')==true
|
strstr($contentDisposition, 'attachment;')==true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user