Not sure if this should have a bug ticket raised or not.. wanted to get
core devs thoughts.


_redir = "//your/path/with/an/extra/slash/for/whatever/reason"
HttpResponseRedirect(_redir)
returns "Location: http://your/path/with/an/extra/slash/for/whatever/reason";

_redir = "/your/path/with/no/extra/slash"
HttpResponseRedirect(_redir)
returns "Location: /your/path/with/no/extra/slash"

It seems that if the URL has an extra slash on the start of it, redirection
doesn't work properly.

Should this be classed as bad user sanity checking, or
HttpResponseRedirect() not being flexible enough?

I personally feel it's not being flexible enough, but would be good to hear
your thoughts.

Cal

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

Reply via email to