From: Rohit Mathulla Date: Sun, 4 Nov 2012 21:02:30 +0000 (+0100) Subject: Support shorthand URLs in an input file X-Git-Tag: v1.15~86 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=5dcb116087b182793cb64b9ec4e7659d72416bae Support shorthand URLs in an input file --- diff --git a/NEWS b/NEWS index ce622995..526aab53 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,8 @@ Please send GNU Wget bug reports to . ** Support FTP listing for the FTP Server on Windows Server 2008 R2. ** Fix a regression when -c and --content-disposition are used together. + +** Support shorthand URLs in an input file. * Changes in Wget 1.14 diff --git a/src/ChangeLog b/src/ChangeLog index 2ccfe6f3..ec78fe8c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-08-29 Rohit Mathulla (tiny change) + + * html-url.c (get_urls_file): Convert shorthand URLs. + 2012-10-07 Ray Satiro * url.c: Change the functions of a growable string object to null diff --git a/src/html-url.c b/src/html-url.c index 855393a7..f0298217 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -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) {