From 2844d623c959dcec7927944413244b1d3d67c458 Mon Sep 17 00:00:00 2001
From: "Silas S. Brown" <ssb22@cam.ac.uk>
Date: Mon, 16 May 2016 17:11:38 +0000
Subject: [PATCH] Update Web Adjuster

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/adjuster@2490 29193198-4895-4776-b068-10539e920549
---
 adjuster.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/adjuster.py b/adjuster.py
index 3869795..f6ee60a 100755
--- a/adjuster.py
+++ b/adjuster.py
@@ -1536,8 +1536,8 @@ document.forms[0].i.focus()
 
     def doReq(self):
         debuglog("doReq "+self.request.uri)
-        if wsgi_mode and self.request.path==os.environ.get("SCRIPT_NAME",'0')+os.environ.get("PATH_INFO","") and 'SCRIPT_URL' in os.environ:
-            # workaround for wsgiref limitation when used with htaccess redirects
+        if wsgi_mode and self.request.path==urllib.quote(os.environ.get("SCRIPT_NAME",'0')+os.environ.get("PATH_INFO","")) and 'SCRIPT_URL' in os.environ:
+            # workaround for Tornado 2.x limitation when used with htaccess redirects
             self.request.path = os.environ['SCRIPT_URL']
             self.request.uri = self.request.path
             if "QUERY_STRING" in os.environ: self.request.uri += '?'+os.environ["QUERY_STRING"]
-- 
GitLab