mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Decode %HH sequences in host name.
This commit is contained in:
parent
f9b1bde64d
commit
dd9a354756
@ -1,3 +1,7 @@
|
||||
2004-03-19 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* url.c (url_parse): Decode %HH sequences in host name.
|
||||
|
||||
2004-03-04 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* convert.c (local_quote_string): Quote "#" as "%23" and "%" as
|
||||
|
@ -999,6 +999,15 @@ url_parse (const char *url, int *error)
|
||||
|
||||
host_modified = lowercase_str (u->host);
|
||||
|
||||
/* Decode %HH sequences in host name. This is important not so much
|
||||
to support %HH sequences, but to support binary characters (which
|
||||
will have been converted to %HH by reencode_escapes). */
|
||||
if (strchr (u->host, '%'))
|
||||
{
|
||||
url_unescape (u->host);
|
||||
host_modified = 1;
|
||||
}
|
||||
|
||||
if (params_b)
|
||||
u->params = strdupdelim (params_b, params_e);
|
||||
if (query_b)
|
||||
|
Loading…
Reference in New Issue
Block a user