fixed issue 1202, commas in attachments, thanks simonm3
This commit is contained in:
@@ -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
@@ -405,7 +405,7 @@ class Response(Storage):
|
|||||||
headers['Content-Type'] = contenttype(name)
|
headers['Content-Type'] = contenttype(name)
|
||||||
if attachment:
|
if attachment:
|
||||||
headers['Content-Disposition'] = \
|
headers['Content-Disposition'] = \
|
||||||
'attachment; filename=%s' % filename
|
'attachment; filename="%s"' % filename.replace('"','\"')
|
||||||
return self.stream(stream, chunk_size=chunk_size, request=request)
|
return self.stream(stream, chunk_size=chunk_size, request=request)
|
||||||
|
|
||||||
def json(self, data, default=None):
|
def json(self, data, default=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user