r30149 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30148‎ | r30149 | r30150 >
Date:10:46, 25 January 2008
Author:catrope
Status:old
Tags:
Comment:
Clarifying unorthodox MIME type
Modified paths:
  • /trunk/phase3/includes/api/ApiFormatDbg.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatTxt.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiFormatDbg.php
@@ -38,6 +38,9 @@
3939 }
4040
4141 public function getMimeType() {
 42+ # This looks like it should be text/plain, but IE7 is so
 43+ # brain-damaged it tries to parse text/plain as HTML if it
 44+ # contains HTML tags. Using MIME text/text works around this bug
4245 return 'text/text';
4346 }
4447
Index: trunk/phase3/includes/api/ApiFormatTxt.php
@@ -38,6 +38,9 @@
3939 }
4040
4141 public function getMimeType() {
 42+ # This looks like it should be text/plain, but IE7 is so
 43+ # brain-damaged it tries to parse text/plain as HTML if it
 44+ # contains HTML tags. Using MIME text/text works around this bug
4245 return 'text/text';
4346 }
4447

Status & tagging log