mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 12:50:13 +08:00
Accept always the file if it is the specified output destination.
This commit is contained in:
parent
c6cf57d215
commit
9b21660d70
3
NEWS
3
NEWS
@ -62,6 +62,9 @@ Please send GNU Wget bug reports to <bug-wget@gnu.org>.
|
||||
|
||||
** Now --no-parent doesn't fetch undesired files if HTTP and HTTPS are used
|
||||
by the same host on different pages.
|
||||
|
||||
** Do not attempt to remove the file if it is not in the accept rules but
|
||||
it is the output destination file.
|
||||
|
||||
* Changes in Wget 1.12
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
2011-08-05 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
* utils.c (acceptable): Accept the file if it is the specified output
|
||||
destination.
|
||||
Reported by: Shai Berger <shai@platonix.com>
|
||||
|
||||
2011-08-05 Giuseppe Scrivano <giuseppe@southpole.se>
|
||||
|
||||
* gnutls.c (ssl_connect_wget): Use `gnutls_priority_set_direct' instead
|
||||
|
@ -875,6 +875,9 @@ acceptable (const char *s)
|
||||
{
|
||||
int l = strlen (s);
|
||||
|
||||
if (opt.output_document && strcmp (s, opt.output_document) == 0)
|
||||
return true;
|
||||
|
||||
while (l && s[l] != '/')
|
||||
--l;
|
||||
if (s[l] == '/')
|
||||
|
Loading…
Reference in New Issue
Block a user