Thomas Bruederli
2013-10-21 f06aa8058b7e32ba32d4551074b6e0b8a300f751
program/steps/mail/get.inc
@@ -150,6 +150,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\"");
      // do content filtering to avoid XSS through fake images