From: Roan Kattouw Date: Fri, 25 Jan 2008 10:46:39 +0000 (+0000) Subject: Clarifying unorthodox MIME type X-Git-Tag: 1.31.0-rc.0~49781 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22statistiques_visites%22%2C%22%22%29%20.%20%22?a=commitdiff_plain;h=c78f424cf68adc7bd5807355473f1e698162d4ad;p=lhc%2Fweb%2Fwiklou.git Clarifying unorthodox MIME type --- diff --git a/includes/api/ApiFormatDbg.php b/includes/api/ApiFormatDbg.php index 2b70bca936..e4bfbdb384 100644 --- a/includes/api/ApiFormatDbg.php +++ b/includes/api/ApiFormatDbg.php @@ -38,6 +38,9 @@ class ApiFormatDbg extends ApiFormatBase { } public function getMimeType() { + # This looks like it should be text/plain, but IE7 is so + # brain-damaged it tries to parse text/plain as HTML if it + # contains HTML tags. Using MIME text/text works around this bug return 'text/text'; } diff --git a/includes/api/ApiFormatTxt.php b/includes/api/ApiFormatTxt.php index 625d428832..38d136452a 100644 --- a/includes/api/ApiFormatTxt.php +++ b/includes/api/ApiFormatTxt.php @@ -38,6 +38,9 @@ class ApiFormatTxt extends ApiFormatBase { } public function getMimeType() { + # This looks like it should be text/plain, but IE7 is so + # brain-damaged it tries to parse text/plain as HTML if it + # contains HTML tags. Using MIME text/text works around this bug return 'text/text'; }