From 84c462d79c10571741c0e0715224d03e934edf14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 15 Apr 2013 10:54:40 +0200 Subject: Fix the fixer to handle GET-args --- fixers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fixers.py') diff --git a/fixers.py b/fixers.py index deded63..822f6b8 100644 --- a/fixers.py +++ b/fixers.py @@ -1,3 +1,4 @@ +from urllib import unquote from werkzeug.wrappers import BaseResponse as Response class ScriptNameFixer(object): @@ -7,7 +8,7 @@ class ScriptNameFixer(object): self.app = app def __call__ (self, environ, start_response): - uri = environ["REQUEST_URI"] + uri = unquote(environ["REQUEST_URI"]).split('?', 1)[0] path = environ["PATH_INFO"] if uri.endswith(path): -- cgit v1.2.3