Opened 5 years ago

Closed 5 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: UI/UX:

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 Changed 5 years ago by dan_head

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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