You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by David Chase <dr...@mediaone.net> on 2001/09/24 06:22:47 UTC

general/8395: text/plain mime type - html tags are parsed and the file is displayed as html rather than plaintext

>Number:         8395
>Category:       general
>Synopsis:       text/plain mime type - html tags are parsed and the file is displayed as html rather than plaintext
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sun Sep 23 21:30:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     drchase@mediaone.net
>Release:        1.3.20
>Organization:
apache
>Environment:
Debian 2.2, kernel 2.4.8:

Linux gemini 2.4.8 #1 SMP Sun Aug 19 22:54:09 EDT 2001 i686 unknown

>Description:
Upon specifying that the 'txt' extension should be text/plain and displayed as plaintext, if the &LT;HTML&GT; tag appears in the text at any place, the whole text will be treated as an HTML document REGARDLESS of what the mime type for that extension is set at.
>How-To-Repeat:
Default install of Apache.  Create a text file that has loads of text and an HTML tag (the exact signification of the start of an HTML document) anywhere in the text.  The whole text should be presented as HTML instead of plaintext.
>Fix:
I tried forcing every file to be displayed as plaintext by using the ForceType directive, to no avail.  Is this a problem with Apache or most common browsers?
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]