From b48b1ab1e52fffd7afb208b63f2f65f0fd91d839 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Mon, 7 Dec 2015 12:24:58 -0800 Subject: [PATCH] Avoid query string passed along in rendering. This middleware is a bit of a mess anyway, since it's basically using static files as templates. However, we definitely don't want to add any GET query parameters rendered into the path name. --- www/conservancy/static/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/conservancy/static/views.py b/www/conservancy/static/views.py index 01d6ae34..b081afe3 100644 --- a/www/conservancy/static/views.py +++ b/www/conservancy/static/views.py @@ -34,7 +34,7 @@ def fundgoal_lookup(fundraiser_sought): def index(request, *args, **kwargs): # return HttpResponse("Hello, static world: " + request.get_full_path()) - path = request.get_full_path() + path = request.path path = path.lstrip('/') if path[-1:] == '/': path += 'index.html'