From 2255a89b24c46e709d62c0c92912ed0090f7eaf3 Mon Sep 17 00:00:00 2001 From: hniksic Date: Thu, 14 Jun 2001 14:48:00 -0700 Subject: [PATCH] [svn] After canonicalizing the URL, check for its existence among undesirable_urls. Published in . --- src/ChangeLog | 5 +++++ src/recur.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 21537835..82b95296 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-06-14 Hrvoje Niksic + + * recur.c (recursive_retrieve): Also check undesirable_urls with + canonicalized URL. + 2001-06-14 Hrvoje Niksic * http.c (gethttp): Search `.netrc' with real host, not the proxy diff --git a/src/recur.c b/src/recur.c index 494e01a3..faa01e41 100644 --- a/src/recur.c +++ b/src/recur.c @@ -381,7 +381,13 @@ recursive_retrieve (const char *file, const char *this_url) } xfree (constr); 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 (!opt.spanhost && this_url && !same_host (this_url, constr)) { -- 2.39.2