1.1 --- a/WebStack/Zope.py Sat Jan 20 23:16:25 2007 +0000
1.2 +++ b/WebStack/Zope.py Sun Jan 21 00:32:06 2007 +0000
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Zope classes.
1.6
1.7 -Copyright (C) 2004, 2005, 2006 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2004, 2005, 2006, 2007 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 @@ -180,6 +180,8 @@
1.13
1.14 # NOTE: Based on WebStack.CGI.get_path.
1.15
1.16 + encoding = encoding or self.default_charset
1.17 +
1.18 path = decode_value(self.request.environ.get("SCRIPT_NAME") or "", encoding)
1.19 path += self.get_path_info(encoding)
1.20 return path
1.21 @@ -197,6 +199,8 @@
1.22 character values.
1.23 """
1.24
1.25 + encoding = encoding or self.default_charset
1.26 +
1.27 product_path = "/".join(self.adapter.getPhysicalPath())
1.28 path_info = self.request.environ.get("PATH_INFO") or ""
1.29 real_path_info = path_info[len(product_path):]
1.30 @@ -225,6 +229,8 @@
1.31 single value is associated with any given field name).
1.32 """
1.33
1.34 + encoding = encoding or self.default_charset
1.35 +
1.36 fields = {}
1.37 for name, values in cgi.parse_qs(self.get_query_string()).items():
1.38 name = decode_value(name, encoding)