Ticket #1485449 (closed Patches: fixed)
Can't display attachment with IE.
| Reported by: | dwj | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-stable |
| Component: | Client Scripts | Version: | 0.2-beta |
| Severity: | normal | Keywords: | |
| Cc: | adamg@… |
Description
I am using 0.2 beta svn version. It's all ok with Firefox, but can't display attachment(pdf/word/execl) files with IE.
I checked the code, it's send_nocacheing_headers() cause IE always delete the file after download completed.
Here is my code to fix the bug.
Modify program/include/rcube_shared.inc
function send_nocacheing_headers()
{
if (headers_sent())
return;
if (strstr($_SERVER['HTTP_USER_AGENT'], “MSIE”))
{
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Transfer-Encoding: binary");
header("Pragma: public");
}
else
{
header("Cache-Control: private");
header("Content-Transfer-Encoding: binary");
header("Expires: 0");
header("Pragma: no-cache");
}
}
Change History
Note: See
TracTickets for help on using
tickets.
