]> sjero.net Git - wget/commitdiff
Parse URLs read from a file.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 8 Jun 2011 09:32:34 +0000 (11:32 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 8 Jun 2011 09:32:34 +0000 (11:32 +0200)
src/ChangeLog
src/retr.c

index b851359f97191e1c6e1740ca2ae7b5ab0c1b6cb9..f2c03037187ad20809b05b968f641bafee1a8835 100644 (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.
index 11b7b022a0cdca11d17133cb6058ef39d12d3aef..2b42454a17c609021bb04eaf2356124b99abf554 100644 (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)))