From: Trevor Parscal Date: Fri, 1 Apr 2011 20:48:50 +0000 (+0000) Subject: Added charset property to HTTP Content-Type fields when serving CSS and JavaScript... X-Git-Tag: 1.31.0-rc.0~31090 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=2cff94d0976136eba934dd16e8984b65ef47e8a9;p=lhc%2Fweb%2Fwiklou.git Added charset property to HTTP Content-Type fields when serving CSS and JavaScript via ResourceLoader - resolves bug #28208. --- diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index d0f6f6bcac..f8bd0d15cf 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -360,9 +360,9 @@ class ResourceLoader { wfProfileOut( __METHOD__.'-getModifiedTime' ); if ( $context->getOnly() === 'styles' ) { - header( 'Content-Type: text/css' ); + header( 'Content-Type: text/css; charset=utf-8' ); } else { - header( 'Content-Type: text/javascript' ); + header( 'Content-Type: text/javascript; charset=utf-8' ); } header( 'Last-Modified: ' . wfTimestamp( TS_RFC2822, $mtime ) ); if ( $context->getDebug() ) {