]> sjero.net Git - wget/blobdiff - src/html-url.c
Support shorthand URLs in an input file
[wget] / src / html-url.c
index 855393a726a03dedc6fcd71d74d51304ec1549d9..f02982173cec0302e0295e68aaecac5abad5942d 100644 (file)
@@ -804,6 +804,13 @@ get_urls_file (const char *file)
           url_text = merged;
         }
 
+      char *new_url = rewrite_shorthand_url (url_text);
+      if (new_url)
+        {
+          xfree (url_text);
+          url_text = new_url;
+        }
+
       url = url_parse (url_text, &up_error_code, NULL, false);
       if (!url)
         {