Opened 14 years ago

Closed 14 years ago

#14346 closed (invalid)

Url patterns double slash // problem

Reported by: mihneagiurgea Owned by: nobody
Component: HTTP handling Version: 1.2
Severity: Keywords: url patterns, double slash
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,

We have the following url config set up:

(r'(?P<query>.*)/search/$', 'frontend.views.search.search'),

And it has a problem with double slashes: if the url is pointed to http://www.ubervu.com/something+http://www.google.com/search/, the query argument that the view receives will be set to something+http:/www.google.com instead of something+http://www.google.com. The request.METAREQUEST_URI, SCRIPT_URI and SCRIPT_URL is correct, but the request.METAPATH_INFO and PATH_TRANSLATED is not.

Is this a known django problem or does it have something to do with the way we set up our server?

Thank you,
Mihnea Giurgea @ uberVU

Change History (1)

comment:1 by dan_head, 14 years ago

Resolution: invalid
Status: newclosed

I've seen this before and it's usually an Apace/mod_rewrite issue. Have a look at this Stack Overflow Question/Answer

I'm going to close this ticket as invalid since The META variables should come directly from the server. If you see some evidence that the web server is sending the right values and it is Django that is somehow modifying them then please reopen.

Note: See TracTickets for help on using tickets.
Back to Top