Accept always the file if it is the specified output destination.

This commit is contained in:
Giuseppe Scrivano 2011-08-05 22:39:55 +02:00
parent c6cf57d215
commit 9b21660d70
3 changed files with 12 additions and 0 deletions

3
NEWS
View File

@ -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

View File

@ -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

View File

@ -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] == '/')