https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103339

Revision: 103339
Author:   platonides
Date:     2011-11-16 16:53:12 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
On errors not using OutputPage, Content-Type header wasn't set, 
although we output localised UTF-8 messaged.

Modified Paths:
--------------
    trunk/phase3/includes/Exception.php

Modified: trunk/phase3/includes/Exception.php
===================================================================
--- trunk/phase3/includes/Exception.php 2011-11-16 16:44:54 UTC (rev 103338)
+++ trunk/phase3/includes/Exception.php 2011-11-16 16:53:12 UTC (rev 103339)
@@ -181,6 +181,7 @@
 
                        $wgOut->output();
                } else {
+                       header( "Content-Type: text/html; charset=utf-8" );
                        $hookResult = $this->runHooks( get_class( $this ) . 
"Raw" );
                        if ( $hookResult ) {
                                die( $hookResult );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to