1.1 --- a/WebStack/Helpers/Request.py Fri Mar 20 22:45:11 2009 +0100
1.2 +++ b/WebStack/Helpers/Request.py Sat Mar 21 00:34:24 2009 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Request helper classes.
1.6
1.7 -Copyright (C) 2004, 2005, 2006, 2007, 2008 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This library is free software; you can redistribute it and/or
1.11 modify it under the terms of the GNU Lesser General Public
1.12 @@ -277,7 +277,8 @@
1.13 elif name == "filename":
1.14 try:
1.15 content_disposition = self.headers["Content-Disposition"]
1.16 - return content_disposition.filename
1.17 + # NOTE: Always seem to need to remove quotes.
1.18 + return content_disposition.filename[1:-1]
1.19 except (KeyError, AttributeError):
1.20 return None
1.21