Switch to side-by-side view
--- a/Allura/allura/controllers/attachments.py +++ b/Allura/allura/controllers/attachments.py @@ -76,7 +76,10 @@ response.content_type = fp.content_type.encode('utf-8') if not embed: response.headers.add('Content-Disposition', - 'attachment;filename=%s' % filename) + 'attachment;filename="%s"' % filename) + else: + response.headers.add('Content-Disposition', + 'filename="%s"' % filename) return fp.read() return self.filename