From b777358d912b37994d633e440f9bfadf6919ac86 Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Tue, 3 Aug 2010 12:52:23 -0500 Subject: [PATCH] Bug 453425 - Send "X-Content-Type-Options: nosniff" header when displaying attachments so IE8 doesn't try to sniff the content type. [r=LpSolit a=LpSolit] --- attachment.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attachment.cgi b/attachment.cgi index cdfcc6bf74..789b55fb46 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -338,7 +338,8 @@ sub view { } print $cgi->header(-type=>"$contenttype; name=\"$filename\"", -content_disposition=> "$disposition; filename=\"$filename\"", - -content_length => $attachment->datasize); + -content_length => $attachment->datasize, + -x_content_type_options => "nosniff"); disable_utf8(); print $attachment->data; } -- 2.47.2