Skip to content
Tcl Source Code History Of Ticket 920728ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 920728ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 920728ffffffffffffffffffffffffffffffffff

  1. Ticket change [6e20eecdef] (rid 128823) by nobody on 2004-03-22 01:57:14:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. 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]
      
    4. foundin initialized to: "obsolete: 8.4.6"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "29. http Package"
    10. title initialized to: "Regexp misparses some URL"
    11. type initialized to: "Bug"
  2. Ticket change [2539b91445] (rid 88132) by dkf on 2005-01-12 18:41:12:

    1. 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
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [e667498236] (rid 104288) by hobbs on 2007-06-13 02:32:10:

    1. closedate changed to: "2007-06-12T19:32:10"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      Works correctly in head.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"
    8. username: "hobbs"