Ticket #1485063: only_ie_hack.diff
| File only_ie_hack.diff, 1.2 kB (added by simplexe, 6 months ago) |
|---|
-
Ð
60 60 $ctype_primary = strtolower($part->ctype_primary); 61 61 $ctype_secondary = strtolower($part->ctype_secondary); 62 62 $mimetype = sprintf('%s/%s', $ctype_primary, $ctype_secondary); 63 64 63 header("Expires: 0"); 65 64 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 66 65 header("Cache-Control: private", false); … … 106 105 } 107 106 else 108 107 { 108 $browser = new rcube_browser(); 109 if ($browser->ie) 110 $iehack = $part->filename = abbreviate_string($part->filename, 55); 111 else 112 $iehack = abbreviate_string($part->filename, 128); 109 113 header(sprintf('Content-Disposition: %s; filename="%s";', 110 114 $_GET['_download'] ? 'attachment' : 'inline', 111 $part->filename ? abbreviate_string($part->filename, 55): "roundcube.$ctype_secondary"));115 $part->filename ? $iehack : "roundcube.$ctype_secondary")); 112 116 113 117 // turn off output buffering and print part content 114 118 $IMAP->get_message_part($MESSAGE['UID'], $part->mime_id, $part, true);
