--------------------- PatchSet 1463 Date: 2005/06/16 10:35:09 Author: rmartinez Branch: squid3-ipv6 Tag: (none) Log: Fixing parser. Still a corner case to be fixed. Members: src/url.cc:1.9.8.2->1.9.8.3 Index: squid3/src/url.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/url.cc,v retrieving revision 1.9.8.2 retrieving revision 1.9.8.3 diff -u -r1.9.8.2 -r1.9.8.3 --- squid3/src/url.cc 15 May 2005 14:11:08 -0000 1.9.8.2 +++ squid3/src/url.cc 16 Jun 2005 10:35:09 -0000 1.9.8.3 @@ -1,6 +1,6 @@ /* - * $Id: url.cc,v 1.9.8.2 2005/05/15 14:11:08 rmartinez Exp $ + * $Id: url.cc,v 1.9.8.3 2005/06/16 10:35:09 rmartinez Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -335,10 +335,11 @@ port = urlDefaultPort(protocol); #ifdef INET6 - if (sscanf(url, "[%[^]]]:%d", host, &port) < 2) + if (sscanf(host, "[%[^]]]:%d", host, &port) < 2) /* the next "sscanf" is intended nested when INET6 */ #endif - sscanf(url, "%[^:]:%d", host, &port); + sscanf(host, "%[^:]:%d", host, &port); /* FIXME. Urgent ! */ + /* 2003:800:45 */ /* Turns on 2003 800 */ /* Is there any login informaiton? */ if ((t = strrchr(host, '@'))) { @@ -440,6 +441,7 @@ } } + request = requestCreate(method, protocol, urlpath); xstrncpy(request->host, host, SQUIDHOSTNAMELEN); xstrncpy(request->login, login, MAX_LOGIN_SZ);