Thomas Bruederli
2012-11-27 ac88dc8d0918ac5ea6004b9ca05158b00d4bd4ed
Don't open application/x-shockwave-flash files in browser (quick fix for XSS reported in #148882)
1 files modified
2 ■■■ changed files
program/steps/mail/show.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/show.inc
@@ -54,7 +54,7 @@
  $OUTPUT->set_env('mailbox', $mbox_name);
  // mimetypes supported by the browser (default settings)
  $mimetypes = $RCMAIL->config->get('client_mimetypes', 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/x-javascript,application/pdf,application/x-shockwave-flash');
  $mimetypes = $RCMAIL->config->get('client_mimetypes', 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/x-javascript,application/pdf');
  $OUTPUT->set_env('mimetypes', is_string($mimetypes) ? explode(',', $mimetypes) : (array)$mimetypes);
  if ($CONFIG['drafts_mbox'])