Aleksander Machniak
2012-12-05 c7ff6ec2cb985061438e5b68cfc5691b5a86422c
program/steps/mail/get.inc
@@ -259,6 +259,13 @@
      $disposition = !empty($plugin['download']) ? 'attachment' : 'inline';
      // Workaround for nasty IE bug (#1488844)
      // If Content-Disposition header contains string "attachment" e.g. in filename
      // IE handles data as attachment not inline
      if ($disposition == 'inline' && $browser->ie && $browser->ver < 9) {
        $filename = str_ireplace('attachment', 'attach', $filename);
      }
      header("Content-Disposition: $disposition; filename=\"$filename\"");
      // handle tiff to jpeg conversion