Overview
| Artifact ID: | 7928309dd0b0d0bc1f044122d854da6e72ce4ded |
|---|---|
| Ticket: | 759888ffffffffffffffffffffffffffffffffff
http::geturl fails on URIs with username/password in them |
| User & Date: | dossy on 2003-06-24 15:40:40 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
http::geturl throws an error when presented a URI that has a username and/or password embedded in the URI. Here's an example: % package require http 2.4.2 % ::http::geturl http://username:password@localhost/ Unsupported URL: http://username:password@localhost/ What needs to be fixed is http2.4/http.tcl, lines 290-- 296: 290 # Validate URL, determine the server host and port, and check proxy case 291 292 if {![regexp -nocase {^(([^:]*)://)?([^/:]+)(: ([0-9]+))?(/.*)?$} $ur l \ 293 x prefix proto host y port srvurl]} { 294 unset $token 295 return -code error "Unsupported URL: $url" 296 } I'm working on writting a better regexp to handle better (and hopefully, complete) URI parsing. I'll attach it as a patch as soon as I get it working and tested, unless someone beats me to it. -- Dossy - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dossy"
- subsystem changed to: "29. http Package"
- title changed to:
http::geturl fails on URIs with username/password in them
- type changed to: "Bug"