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]


git-svn-id: svn://10.0.0.236/trunk@260948 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2010-08-03 18:03:12 +00:00
parent 2b2c634f5c
commit 4b084bf2f3
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
7419
7420

View File

@ -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;
}