Opened 16 years ago

Closed 16 years ago

#7493 closed (duplicate)

build_absolute_url method of the HttpRequest class fails with urls with : in their path

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When build_absolute_url is called for a location that should contain a ":" character in it's path it fails to add the "http://www.example.com" part.

This is because off line 76 of django/http/init.py where "if not ':' in location:" is used to check if the location is already absolute.

According to http://www.faqs.org/rfcs/rfc1738.html it is perfectly valid to have a ":" in the path part of a HTTP url.

Change History (1)

comment:1 by anonymous, 16 years ago

Resolution: duplicate
Status: newclosed

Sorry, created this ticket twice by mistake. Must have hit the submit button to early here.

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