Opened 15 years ago
Closed 15 years ago
#14346 closed (invalid)
Url patterns double slash // problem
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
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.