r24106 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24105‎ | r24106 | r24107 >
Date:05:04, 15 July 2007
Author:amidaniel
Status:old
Tags:
Comment:
Actually, let's make that message a tid bit more clear: "Page type not compatible with requested mime type."
Modified paths:
  • /trunk/phase3/includes/RawPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/RawPage.php
@@ -151,7 +151,7 @@
152152 $dangerousTypes = array( $wgJsMimeType, 'text/css' );
153153 if ( in_array( $this->mContentType, $dangerousTypes ) &&
154154 !($this->mTitle->isCssOrJsPage() || $this->mTitle->isCssJsSubpage() ) )
155 - return '/* EMPTY */';
 155+ return '/* Page type not compatible with requested mime type. */';
156156
157157 if($this->mGen) {
158158 $sk = $wgUser->getSkin();

Follow-up revisions

RevisionCommit summaryAuthorDate
r24202Revert r24105, r24106, r24107 'security fix' forbidden text/css and text/java...brion15:50, 17 July 2007
r24215Merged revisions 24095-24212 via svnmerge from...david21:19, 17 July 2007

Status & tagging log