Parse URLs read from a file.

This commit is contained in:
Giuseppe Scrivano 2011-06-08 11:32:34 +02:00
parent 544f0d478a
commit f90ca4e54a
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2011-06-08 Giuseppe Scrivano <gscrivano@southpole.se>
* retr.c (retrieve_from_file): Parse the url careless if IRI is enabled.
Reported by: Volker Kuhlmann <list0570@paradise.net.nz>.
2011-05-24 Giuseppe Scrivano <gscrivano@gnu.org>
* retr.c (fd_read_body): Define max.

View File

@ -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)))