From: Giuseppe Scrivano Date: Wed, 8 Jun 2011 09:32:34 +0000 (+0200) Subject: Parse URLs read from a file. X-Git-Tag: v1.13~19 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=f90ca4e54af7107bd536bb0821251be6fab255ba Parse URLs read from a file. --- diff --git a/src/ChangeLog b/src/ChangeLog index b851359f..f2c03037 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-06-08 Giuseppe Scrivano + + * retr.c (retrieve_from_file): Parse the url careless if IRI is enabled. + Reported by: Volker Kuhlmann . + 2011-05-24 Giuseppe Scrivano * retr.c (fd_read_body): Define max. diff --git a/src/retr.c b/src/retr.c index 11b7b022..2b42454a 100644 --- a/src/retr.c +++ b/src/retr.c @@ -1005,9 +1005,7 @@ retrieve_from_file (const char *file, bool html, int *count) break; } - /* Need to reparse the url, since it didn't have iri information. */ - if (opt.enable_iri) - parsed_url = url_parse (cur_url->url->url, NULL, tmpiri, true); + parsed_url = url_parse (cur_url->url->url, NULL, tmpiri, true); if ((opt.recursive || opt.page_requisites) && (cur_url->url->scheme != SCHEME_FTP || getproxy (cur_url->url)))