Only abbreviate file name for IE browsers (#1485063)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2008/12/16 (thomasb) |
| | | ---------- |
| | | - Only abbreviate file name for IE browsers (#1485063) |
| | | |
| | | 2008/12/11 (alec) |
| | | ---------- |
| | | - Performance: allow setting imap rootdir and delimiter before connect (#1485172) |
| | |
| | | } |
| | | |
| | | $filename = $part->filename ? $part->filename : ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . '.'.$ctype_secondary; |
| | | $filename = abbreviate_string($part->filename, 55); |
| | | $filename = $browser->ie ? rawurlencode($filename) : addcslashes($filename, '"'); |
| | | $filename = $browser->ie ? rawurlencode(abbreviate_string($filename, 55)) : addcslashes($filename, '"'); |
| | | $disposition = !empty($_GET['_download']) ? 'attachment' : 'inline'; |
| | | |
| | | header("Content-Disposition: $disposition; filename=\"$filename\""); |