* (bug 15461) Make IE8 turn off content sniffing. Everbody else should ignore this
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 13 May 2011 15:52:46 +0000 (15:52 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 13 May 2011 15:52:46 +0000 (15:52 +0000)
commitd5b4ce16dc77c702e5f8c79fa4f890ee9a48242a
tree7a1db71ee6bebb6b1287c4f931321127de0bc67d
parentba564eeb7c73c409e3cbd1063c2ac350d6a7e360
* (bug 15461) Make IE8 turn off content sniffing. Everbody else should ignore this

Adding X-Content-Type-Options: nosniff header in WebStart.php so that it's *always* set, even for alternate entry points and when $wgOut gets disabled or overridden.

Note that this of course doesn't apply to uploaded images and such loaded directly -- the usual caveats still apply.

Have not tested to confirm that this actually protects against sniffing errors -- please test on IE8 and IE9.
includes/WebStart.php