mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] After canonicalizing the URL, check for its existence among undesirable_urls.
Published in <sxs7kyeohte.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
4f56fa7ead
commit
2255a89b24
@ -1,3 +1,8 @@
|
|||||||
|
2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
|
* recur.c (recursive_retrieve): Also check undesirable_urls with
|
||||||
|
canonicalized URL.
|
||||||
|
|
||||||
2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* http.c (gethttp): Search `.netrc' with real host, not the proxy
|
* http.c (gethttp): Search `.netrc' with real host, not the proxy
|
||||||
|
@ -381,7 +381,13 @@ recursive_retrieve (const char *file, const char *this_url)
|
|||||||
}
|
}
|
||||||
xfree (constr);
|
xfree (constr);
|
||||||
constr = xstrdup (u->url);
|
constr = xstrdup (u->url);
|
||||||
string_set_add (undesirable_urls, constr);
|
/* After we have canonicalized the URL, check if we have it
|
||||||
|
on the black list. */
|
||||||
|
if (string_set_contains (undesirable_urls, constr))
|
||||||
|
inl = 1;
|
||||||
|
/* This line is bogus. */
|
||||||
|
/*string_set_add (undesirable_urls, constr);*/
|
||||||
|
|
||||||
if (!inl && !((u->proto == URLFTP) && !this_url_ftp))
|
if (!inl && !((u->proto == URLFTP) && !this_url_ftp))
|
||||||
if (!opt.spanhost && this_url && !same_host (this_url, constr))
|
if (!opt.spanhost && this_url && !same_host (this_url, constr))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user