Ticket #10678: django-10678.diff

File django-10678.diff, 645 bytes (added by Adam Vollrath, 15 years ago)

Alternative patch raising ValueError when a bad django.root is configured

  • django/core/handlers/modpython.py

     
    2222        # encoding/decoding.
    2323        self.path = force_unicode(req.uri)
    2424        root = req.get_options().get('django.root', '')
     25        if root.endswith('/'):
     26            raise ValueError('django.root should not end with a /')
    2527        self.django_root = root
    2628        # req.path_info isn't necessarily computed correctly in all
    2729        # circumstances (it's out of mod_python's control a bit), so we use
Back to Top