From 42ff4aa0d8bfa947f96a60080998c86564afcfeb Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 5 Dec 2012 16:49:24 -0600 Subject: [PATCH] fixed issue 1202, commas in attachments, thanks simonm3 --- VERSION | 2 +- gluon/globals.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index daec3cd8..2588c406 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.3.0 (2012-12-05 16:34:11) rc1 +Version 2.3.0 (2012-12-05 16:48:37) rc1 diff --git a/gluon/globals.py b/gluon/globals.py index 8a8bc093..1c6dc04d 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -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):