dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bb8c2e
)
On errors not using OutputPage, Content-Type header wasn't set,
author
Platonides
<platonides@users.mediawiki.org>
Wed, 16 Nov 2011 16:53:12 +0000
(16:53 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Wed, 16 Nov 2011 16:53:12 +0000
(16:53 +0000)
although we output localised UTF-8 messaged.
includes/Exception.php
patch
|
blob
|
history
diff --git
a/includes/Exception.php
b/includes/Exception.php
index
8c4e0a7
..
08a63ee
100644
(file)
--- a/
includes/Exception.php
+++ b/
includes/Exception.php
@@
-181,6
+181,7
@@
class MWException extends Exception {
$wgOut->output();
} else {
+ header( "Content-Type: text/html; charset=utf-8" );
$hookResult = $this->runHooks( get_class( $this ) . "Raw" );
if ( $hookResult ) {
die( $hookResult );