summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-06-20 13:33:08 -0400
committerDonald Stufft <donald@stufft.io>2013-06-20 13:33:08 -0400
commit08a589da873c5178e1118722e03d318fab212779 (patch)
tree4c2cfae14c006fe4a92fbbb371e2fb056ed3902b
parent79ed46c3ed6a3ca528a2a6551bcaadfe8babd1b6 (diff)
downloaddecorator-08a589da873c5178e1118722e03d318fab212779.tar.gz
Revert and unneeded change
-rw-r--r--webui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/webui.py b/webui.py
index b95bbe4..de2c7b7 100644
--- a/webui.py
+++ b/webui.py
@@ -783,8 +783,9 @@ class WebUI:
def run_simple_sign(self):
path = self.env.get('PATH_INFO')
- # Helper to support this working with simple WSGI main script.
- path = path.strip('/')
+ if not path.endswith('/'):
+ raise Redirect, self.config.simple_sign_script+path+'/'
+ path = path[1:-1]
if '/' in path:
raise NotFound, path
html = self.simple_body(path)