Misclassifying text as text/html
Bug #143948 reported by
Plone Forge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If a text file is uploaded without an extension in the filename,
text_type in lib/python/
The code should be a bit more rigourous: a suggested patch is attached.
To post a comment you must log in.
Uploaded: init__.py
Oops - sorry this code has moved in 2.9.8 to 9.8-final/ lib/python/ zope/app/ content_ types/_ _init__ .py
Zope-2.
The same logic applies as the code was duplicated. Attached is a slightly more elaborate patch that tries to be more efficient.