Commit b91f97a0 authored by Jim Fulton's avatar Jim Fulton

Fixed a bug in computing BASEx when SCRIPT_NAME is non-empty.

parent a11e488a
......@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
__version__='$Revision: 1.6 $'[11:-2]
__version__='$Revision: 1.7 $'[11:-2]
import regex, sys, os
from string import lower, atoi, rfind, split, strip, join, upper, find
......@@ -426,6 +426,7 @@ class HTTPRequest(BaseRequest):
if key[:1]=='B' and BASEmatch(key) >= 0:
n=ord(key[4])-ord('0')
if n:
if self.environ.get('SCRIPT_NAME',''): n=n-1
if len(self.steps) < n:
raise KeyError, key
v=self.script
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment