r48531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48530‎ | r48531 | r48532 >
Date:20:20, 18 March 2009
Author:tstarling
Status:ok
Tags:
Comment:
Use a content type that's not an XSS risk
Modified paths:
  • /trunk/phase3/includes/AjaxResponse.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/AjaxResponse.php
@@ -45,7 +45,7 @@
4646 $this->mText = '';
4747 $this->mResponseCode = '200 OK';
4848 $this->mLastModified = false;
49 - $this->mContentType= 'text/html; charset=utf-8';
 49+ $this->mContentType= 'application/x-wiki';
5050
5151 if ( $text ) {
5252 $this->addText( $text );

Status & tagging log