Skip to content
Tcl Source Code Artifact [6e20eecdef]
Login

Artifact [6e20eecdef]

Artifact 6e20eecdef68392ae6ef441a901607c0785c60a4:

Ticket change [6e20eecdef] - New ticket [920728ffffffffff|920728ffff] <i>Regexp misparses some URL</i>. by nobody on 2004-03-22 01:57:14.
D 2004-03-22T01:57:14
J assignee hobbs
J cmimetype text/plain
J comment A\sURL\sof\sthe\sform\nhttp://foo.com/@bar.com/url.ext\nis\smisparsed\swith\sthe\shost\sbeing\sbar.com\sinstead\sof\sfoo.com.\n\nThe\sproblem\sis\san\sattempt\sto\sparse\[email protected]\stype\sURL\n\nThis\scode\sis\swhere\sit\shappens:\n\n\s\s\s\s\s\s\sset\sexp\s{^(([^:]*)://)?([^@]+@)?([^/:]+)(:([0-9]+))?(/.*)?$}\n\s\s\s\s\s\s\sif\s{![regexp\s-nocase\s$exp\s$url\sx\sprefix\sproto\suser\shost\sy\sport\ssrvurl]}\s{\n\nThis\smodification\s(adding\sa\s/\sto\sthe\sunrecognzed\scharacters\sas\spart\sof\sa\s\n"name@"\sfield)\ssolves\sthe\sproblem.\n\s\s\n\s\s\s\s\s\s\s\sset\sexp\s{^(([^:]*)://)?([^@/]+@)?([^/:]+)(:([0-9]+))?(/.*)?$}\n\s\s\s\s\s\s\s\sif\s{![regexp\s-nocase\s$exp\s$url\sx\sprefix\sproto\suser\shost\sy\sport\ssrvurl]}\s{\n\nSubmitted\sby\[email protected]
J foundin obsolete:\s8.4.6
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 29.\shttp\sPackage
J title Regexp\smisparses\ssome\sURL
J type Bug
K 920728ffffffffffffffffffffffffffffffffff
U nobody
Z 99785b1fa8ade3d89c039596a9e8c9bd