Commit 1146feac authored by Jérome Perrin's avatar Jérome Perrin

guess_extension can return None, make sure we do not include 'None' in the

filename in that case


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32416 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0ae40c64
...@@ -568,7 +568,7 @@ class OOoTemplate(ZopePageTemplate): ...@@ -568,7 +568,7 @@ class OOoTemplate(ZopePageTemplate):
'%s; charset=utf-8' % self.content_type) '%s; charset=utf-8' % self.content_type)
request.RESPONSE.setHeader('Content-disposition', request.RESPONSE.setHeader('Content-disposition',
'inline;filename="%s%s"' % (self._getFileName(), 'inline;filename="%s%s"' % (self._getFileName(),
guess_extension(self.content_type))) guess_extension(self.content_type) or ''))
if DevelopmentMode: if DevelopmentMode:
# Validate XML in development mode # Validate XML in development mode
......
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