mirror of
https://github.com/mirror/wget.git
synced 2025-02-01 23:30:11 +08:00
[svn] parse_uname() Would run past the end of the string if the
username was present, but the URL did not contain a slash, e.g. http://foo:bar@myhost. Reported by Christian Fraenkel.
This commit is contained in:
parent
7747b95480
commit
c51015565a
@ -1,3 +1,9 @@
|
|||||||
|
2001-04-04 Christian Fraenkel <christian.fraenkel@gmx.net>
|
||||||
|
|
||||||
|
* url.c (parse_uname): Would run past the end of the string if the
|
||||||
|
username was present, but the URL did not contain a slash, e.g.
|
||||||
|
http://foo:bar@myhost.
|
||||||
|
|
||||||
2001-04-03 KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
|
2001-04-03 KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
|
||||||
|
|
||||||
* http.c (http_atotm): Use %A instead of %a to match full
|
* http.c (http_atotm): Use %A instead of %a to match full
|
||||||
|
@ -622,7 +622,7 @@ parse_uname (const char *url, char **user, char **passwd)
|
|||||||
if (*p != '@')
|
if (*p != '@')
|
||||||
return URLOK;
|
return URLOK;
|
||||||
/* Else find the username and password. */
|
/* Else find the username and password. */
|
||||||
for (p = q = col = url; *p != '/'; p++)
|
for (p = q = col = url; *p && *p != '/'; p++)
|
||||||
{
|
{
|
||||||
if (*p == ':' && !*user)
|
if (*p == ':' && !*user)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user