1.1 --- a/WebStack/Generic.py Fri Nov 25 16:51:54 2005 +0000
1.2 +++ b/WebStack/Generic.py Sat Nov 26 01:15:54 2005 +0000
1.3 @@ -613,6 +613,11 @@
1.4
1.5 Where the virtual path info is either an empty string or not a substring
1.6 of the path info, the entire path info is returned.
1.7 +
1.8 + Generally, one should expect the following relationship between the path
1.9 + info, virtual path info and processed virtual path info:
1.10 +
1.11 + path info == processed virtual path info + virtual path info
1.12 """
1.13
1.14 real_path_info = self.get_path_info(encoding)
1.15 @@ -621,7 +626,7 @@
1.16 if virtual_path_info == "":
1.17 return real_path_info
1.18
1.19 - i = real_path_info.find(virtual_path_info)
1.20 + i = real_path_info.rfind(virtual_path_info)
1.21 if i == -1:
1.22 return real_path_info
1.23 else: