Commit 99bbaa00 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Allow avoidance of the Apache mod_rewrite undo.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent b653cdcf
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -182,6 +182,7 @@ def get_script_name(environ):
    Note: this isn't used by the mod_python handler, since the equivalent of
    SCRIPT_NAME isn't available there.
    """
    if not environ.get('DJANGO_USE_POST_REWRITE'):
        # If mod_rewrite had a whack at the URL, Apache set SCRIPT_URL to
        # SCRIPT_NAME before applying any rewrites.
        script_url = force_unicode(environ.get('SCRIPT_URL', ''))