On Friday, February 11, 2011 12:08:25 AM UTC+11, Torsten Bronger wrote:
>
> Hall�chen!
>
> Torsten Bronger writes:
>
> > [...]
> >
> > Currently, a URL like "http://www.example.com/super%2F/edit/"; is
> > normalised to "http://www.example.com/super/edit/";.  This is bad
> > because the entity to be edited is called "super/"(sic!) but this
> > way, you edit "super".
> >
> > [...]
> >
> > Somewhere in mod_wsgi or Django the URL is normalised, but where?
> > And can I switch it off?
>
> This *seems* to be a mod_wsgi qirk, see
> <
> http://code.google.com/p/modwsgi/source/browse/trunk/mod_wsgi/mod_wsgi.c#8140
> >.
> If this is true, you can't switch it off without recompiling.
>

The collapsing is done in Apache not mod_wsgi, at least with Apache 2.X. 
That bit of code you reference would only actually apply for Apache 1.3 and 
in 2.X should be an effective noop. That code is there simply to make older 
Apache 1.3 behave in same was as Apache 2.X. With Apache 1.3 support being 
dropped soon, likely that the code will be removed and you would still find 
that slashes get collapsed.

Graham

> Tsch�,
> Torsten.
>
> -- 
> Torsten Bronger    Jabber ID: torsten...@jabber.rwth-aachen.de
>                                   or http://bronger-jmp.appspot.com
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to