34 | | Hack to workaround [http://trac.lighttpd.net/trac/ticket/729 lighttpd bug #729] (See [http://trac.edgewall.org/ticket/2418 trac bug #2418]) |
35 | | |
36 | | {{{ |
37 | | --- /usr/share/python-support/trac/trac/web/api.py.orig 2006-11-13 06:41:07.0000 -0500 |
38 | | +++ /usr/share/python-support/trac/trac/web/api.py 2007-05-07 18:31:23.0000 |
39 | | @@ -216,7 +216,7 @@ |
40 | | |
41 | | method = property(fget=lambda self: self.environ['REQUEST_METHOD'], |
42 | | doc='The HTTP method of the request') |
43 | | - path_info = property(fget=lambda self: self.environ.get('PATH_INFO', '').de |
44 | | code('utf-8'), |
45 | | + path_info = property(fget=lambda self: self.environ.get('SCRIPT_NAME', '') + self.environ.get('PATH_INFO', '').decode('utf-8'), |
46 | | doc='Path inside the application') |
47 | | remote_addr = property(fget=lambda self: self.environ.get('REMOTE_ADDR'), |
48 | | doc='IP address of the remote user') |
49 | | @@ -225,7 +225,7 @@ |
50 | | 'has not logged in using HTTP authentication') |
51 | | scheme = property(fget=lambda self: self.environ['wsgi.url_scheme'], |
52 | | doc='The scheme of the request URL') |
53 | | - base_path = property(fget=lambda self: self.environ.get('SCRIPT_NAME', ''), |
54 | | + base_path = property(fget=lambda self: '/', |
55 | | doc='The root path of the application') |
56 | | server_name = property(fget=lambda self: self.environ['SERVER_NAME'], |
57 | | doc='Name of the server') |
58 | | |
59 | | }}} |
| 38 | Hack to workaround [http://trac.lighttpd.net/trac/ticket/729 lighttpd bug #729] (See [http://trac.edgewall.org/ticket/2418#comment:15 trac bug #2418]) |