Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -901,8 +901,10 @@ |
902 | 902 | $this->addScriptFile( 'rightclickedit.js' ); |
903 | 903 | } |
904 | 904 | |
| 905 | + $this->mBodytext = StringUtils::cleanForCharset( $this->mBodytext, $wgOutputEncoding ); |
| 906 | + |
905 | 907 | # Buffer output; final headers may depend on later processing |
906 | | - ob_start( array( 'OutputPage', 'cleanCallback') ); |
| 908 | + ob_start(); |
907 | 909 | |
908 | 910 | $wgRequest->response()->header( "Content-type: $wgMimeType; charset={$wgOutputEncoding}" ); |
909 | 911 | $wgRequest->response()->header( 'Content-language: '.$wgContLanguageCode ); |
— | — | @@ -924,13 +926,6 @@ |
925 | 927 | wfProfileOut( __METHOD__ ); |
926 | 928 | } |
927 | 929 | |
928 | | - public static function cleanCallback( $s ) { |
929 | | - wfProfileIn( __METHOD__ ); |
930 | | - $s = StringUtils::cleanForCharset( $s, $wgOutputEncoding ); |
931 | | - wfProfileOut( __METHOD__ ); |
932 | | - return $s; |
933 | | - } |
934 | | - |
935 | 930 | /** |
936 | 931 | * @todo document |
937 | 932 | * @param string $ins |