Commit 8e9e837b authored by Andreas Jung's avatar Andreas Jung

     - Collector #342: Avoiding insertion of a BASE tag for file objects
       with content-type text/html
parent 01482871
......@@ -71,6 +71,9 @@ Zope Changes
Bugs Fixed
- Collector #342: Avoiding insertion of a BASE tag for file objects
with content-type text/html
- Collector #953: fixed namespace collision with form_title in ZMI
- Collector #628: Applied patch to fix several textarea resize
......
......@@ -12,7 +12,7 @@
##############################################################################
"""Image object"""
__version__='$Revision: 1.145 $'[11:-2]
__version__='$Revision: 1.146 $'[11:-2]
import Globals, struct
from OFS.content_types import guess_content_type
......@@ -375,7 +375,9 @@ class File(Persistent, Implicit, PropertyManager,
self.ZCacheable_set(None)
data=self.data
if type(data) is type(''): return data
if type(data) is type(''):
RESPONSE.setBase(None)
return data
while data is not None:
RESPONSE.write(data.data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment