Clarifying unorthodox MIME type
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 25 Jan 2008 10:46:39 +0000 (10:46 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 25 Jan 2008 10:46:39 +0000 (10:46 +0000)
includes/api/ApiFormatDbg.php
includes/api/ApiFormatTxt.php

index 2b70bca..e4bfbdb 100644 (file)
@@ -38,6 +38,9 @@ class ApiFormatDbg extends ApiFormatBase {
        }\r
 \r
        public function getMimeType() {\r
+               # This looks like it should be text/plain, but IE7 is so\r
+               # brain-damaged it tries to parse text/plain as HTML if it\r
+               # contains HTML tags. Using MIME text/text works around this bug\r
                return 'text/text';\r
        }\r
 \r
index 625d428..38d1364 100644 (file)
@@ -38,6 +38,9 @@ class ApiFormatTxt extends ApiFormatBase {
        }\r
 \r
        public function getMimeType() {\r
+               # This looks like it should be text/plain, but IE7 is so\r
+               # brain-damaged it tries to parse text/plain as HTML if it\r
+               # contains HTML tags. Using MIME text/text works around this bug\r
                return 'text/text';\r
        }\r
 \r