Code

Ticket #10678: rick.diff

File rick.diff, 708 bytes (added by tallfred, 5 years ago)

patch to correct bad configurable values

Line 
1Index: core/handlers/modpython.py
2===================================================================
3--- core/handlers/modpython.py  (revision 10212)
4+++ core/handlers/modpython.py  (working copy)
5@@ -21,7 +21,7 @@ class ModPythonRequest(http.HttpRequest)
6         # below. For now, don't use script names that will be subject to
7         # encoding/decoding.
8         self.path = force_unicode(req.uri)
9-        root = req.get_options().get('django.root', '')
10+        root = req.get_options().get('django.root', '').rstrip('/')
11         self.django_root = root
12         # req.path_info isn't necessarily computed correctly in all
13         # circumstances (it's out of mod_python's control a bit), so we use