Commit d0b0bb6d authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #163445 by webengr, mlsamuelson, greg.1.anderson, pescetti: fix issues...

Issue #163445 by webengr, mlsamuelson, greg.1.anderson, pescetti: fix issues with IE not being able to download private files served over SSL with additional headers
parent 3a0d53fe
......@@ -854,6 +854,14 @@ function file_transfer($source, $headers) {
if (ob_get_level()) {
ob_end_clean();
}
// IE cannot download private files because it cannot store files downloaded
// over https in the browser cache. The problem can be solved by sending
// custom headers to IE. See http://support.microsoft.com/kb/323308/en-us
if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) {
drupal_set_header('Cache-Control: private');
drupal_set_header('Pragma: private');
}
foreach ($headers as $header) {
// To prevent HTTP header injection, we delete new lines that are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment