From f90ca4e54af7107bd536bb0821251be6fab255ba Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 8 Jun 2011 11:32:34 +0200 Subject: [PATCH] Parse URLs read from a file. --- src/ChangeLog | 5 +++++ src/retr.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) 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))) -- 2.39.2