fixed issue 1202, commas in attachments, thanks simonm3

This commit is contained in:
mdipierro
2012-12-05 16:49:24 -06:00
parent fcd960149d
commit 42ff4aa0d8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.0 (2012-12-05 16:34:11) rc1
Version 2.3.0 (2012-12-05 16:48:37) rc1
+1 -1
View File
@@ -405,7 +405,7 @@ class Response(Storage):
headers['Content-Type'] = contenttype(name)
if attachment:
headers['Content-Disposition'] = \
'attachment; filename=%s' % filename
'attachment; filename="%s"' % filename.replace('"','\"')
return self.stream(stream, chunk_size=chunk_size, request=request)
def json(self, data, default=None):