summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-01-10 16:50:20 +0100
committerXavier Morel <xmo@openerp.com>2012-01-10 16:50:20 +0100
commitd54a19681110663aa8016f73b70c1663cc2a2b10 (patch)
treeb4b6af6dde978be2345a171687069968c4163cb7 /addons/web/controllers
parentd98b8b8be0145700667c0f4cc0e7619dec790c5b (diff)
[IMP] correctly handle filenames in list view binaries
bzr revid: xmo@openerp.com-20120110155020-ab02qb0ktlfxnwvb
Diffstat (limited to 'addons/web/controllers')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index c775927a8cc..b6405873f80 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -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):