1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] URL-decode user and password in URL.

Published in <sxsita52hg6.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2002-01-14 05:26:16 -08:00
parent 524a1f54dc
commit 46617228fa
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-01-14 Hrvoje Niksic <hniksic@arsdigita.com>
* url.c (parse_uname): URL-decode *USER and *PASSWD.
2002-01-07 Ian Abbott <abbotti@mev.co.uk>
* url.c (uri_merge_1): Deal with "net path" relative URL (one that

View File

@ -528,6 +528,11 @@ parse_uname (const char *str, int len, char **user, char **passwd)
memcpy (*user, str, len);
(*user)[len] = '\0';
if (*user)
decode_string (*user);
if (*passwd)
decode_string (*passwd);
return 1;
}