1.1 --- a/WebStack/Generic.py Tue Dec 06 17:17:43 2005 +0000
1.2 +++ b/WebStack/Generic.py Tue Dec 06 17:18:49 2005 +0000
1.3 @@ -672,6 +672,8 @@
1.4
1.5 trans.update_path("/parent/node/", "../../other") -> "/other"
1.6
1.7 + trans.update_path("/parent/node", "..") -> "/"
1.8 +
1.9 Where 'relative_path' begins with "/", the 'path' is reset to "/" and
1.10 the components of the 'relative_path' are then applied to that new path:
1.11
1.12 @@ -712,7 +714,7 @@
1.13 else:
1.14 parts.append(rpart)
1.15
1.16 - return "/".join(parts)
1.17 + return "/" + "/".join(parts[1:])
1.18
1.19 def redirect(self, path, code=302):
1.20