[IMP] correctly handle filenames in list view binaries

bzr revid: xmo@openerp.com-20120110155020-ab02qb0ktlfxnwvb
This commit is contained in:
Xavier Morel
2012-01-10 16:50:20 +01:00
parent d98b8b8be0
commit d54a196811
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -1217,7 +1217,7 @@ class Binary(openerpweb.Controller):
filename = res.get(filename_field, '') or filename
return req.make_response(filecontent,
[('Content-Type', 'application/octet-stream'),
('Content-Disposition', 'attachment; filename=' + filename)])
('Content-Disposition', 'attachment; filename="%s"' % filename)])
@openerpweb.httprequest
def upload(self, req, callback, ufile):