aboutsummaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorMatt Selsky <selsky@columbia.edu>2012-05-29 17:01:42 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-05-29 17:01:42 +0200
commit9245e5ca7bab659a00bf301f3db22b8d9608f92b (patch)
tree59d66b8118bde17dbb1401eb2c3af62516381d7d /attachment.cgi
parent19b514899d02fde1c53916fe0c0a364548c6ab8d (diff)
downloadbugs-9245e5ca7bab659a00bf301f3db22b8d9608f92b.tar
bugs-9245e5ca7bab659a00bf301f3db22b8d9608f92b.tar.gz
bugs-9245e5ca7bab659a00bf301f3db22b8d9608f92b.tar.bz2
bugs-9245e5ca7bab659a00bf301f3db22b8d9608f92b.tar.xz
bugs-9245e5ca7bab659a00bf301f3db22b8d9608f92b.zip
Bug 671612: Send "X-Content-Type-Options: nosniff" with every response
r/a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi3
1 files changed, 1 insertions, 2 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 2bc6e5454..92f48d05d 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -385,8 +385,7 @@ sub view {
}
print $cgi->header(-type=>"$contenttype; name=\"$filename\"",
-content_disposition=> "$disposition; filename=\"$filename\"",
- -content_length => $attachment->datasize,
- -x_content_type_options => "nosniff");
+ -content_length => $attachment->datasize);
disable_utf8();
print $attachment->data;
}