Artifacts Associated With Ticket 920728ffffffffff
Ticket change [6e20eecdef] (rid 128823) by nobody on 2004-03-22 01:57:14:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
A URL of the form http://foo.com/@bar.com/url.ext is misparsed with the host being bar.com instead of foo.com. The problem is an attempt to parse [email protected] type URL This code is where it happens: set exp {^(([^:]*)://)?([^@]+@)?([^/:]+)(:([0-9]+))?(/.*)?$} if {![regexp -nocase $exp $url x prefix proto user host y port srvurl]} { This modification (adding a / to the unrecognzed characters as part of a "name@" field) solves the problem. set exp {^(([^:]*)://)?([^@/]+@)?([^/:]+)(:([0-9]+))?(/.*)?$} if {![regexp -nocase $exp $url x prefix proto user host y port srvurl]} { Submitted by [email protected]
- foundin initialized to: "obsolete: 8.4.6"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "29. http Package"
- title initialized to: "Regexp misparses some URL"
- type initialized to: "Bug"
Ticket change [2539b91445] (rid 88132) by dkf on 2005-01-12 18:41:12:
- icomment:
Logged In: YES user_id=79902 The correct URL (and its interpretation) is this horror: set exp {^(?:([^:]*)://)?(?:([^@/:]+)(?::([^@/:]+))?@)?([^/:]+)(?::([0-9]+))?(/.*)?$} regexp $exp -> proto user pass host port path - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [e667498236] (rid 104288) by hobbs on 2007-06-13 02:32:10:
- closedate changed to: "2007-06-12T19:32:10"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Originator: NO Works correctly in head.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Closed"
- username: "hobbs"