Artifact
75a56fd2056e2bfa2ca5aee042b6ec2e5d127468:
Ticket change
[75a56fd205]
- New ticket
[921072ffffffffff|921072ffff] <i>Regexp misparses some URL</i>.
by
nobody on
2004-03-22 15:35:40.
D 2004-03-22T15:35:40
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 921072ffffffffffffffffffffffffffffffffff
U nobody
Z 55bd433b2f76844794bd32f55a34629f