mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Do not adjust the extension if the file ends in .htm.
This commit is contained in:
parent
09bc5b5787
commit
bb6a72caea
3
NEWS
3
NEWS
@ -54,6 +54,9 @@ Please send GNU Wget bug reports to <bug-wget@gnu.org>.
|
||||
|
||||
** Fix an infinite loop with the error '<filename> has sprung into existence'
|
||||
on a network error and -nc is used.
|
||||
|
||||
** Now --adjust-extension does not modify the file extension if the file ends
|
||||
in .htm.
|
||||
|
||||
* Changes in Wget 1.12
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2011-03-02 Tomasz Buchert <tomek.buchert@gmail.com> (tiny change)
|
||||
|
||||
* http.c (ensure_extension): Do not adjust the extension if the file
|
||||
ends in .htm.
|
||||
|
||||
2011-02-22 Gilles Carry <gilles dot carry at st dot com>
|
||||
|
||||
* main.c (prompt_for_password): Use stderr instead of stdout
|
||||
|
@ -3501,7 +3501,7 @@ ensure_extension (struct http_stat *hs, const char *ext, int *dt)
|
||||
if (len == 5)
|
||||
{
|
||||
strncpy (shortext, ext, len - 1);
|
||||
shortext[len - 2] = '\0';
|
||||
shortext[len - 1] = '\0';
|
||||
}
|
||||
|
||||
if (last_period_in_local_filename == NULL
|
||||
|
Loading…
Reference in New Issue
Block a user