summaryrefslogtreecommitdiff
path: root/src/html-url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html-url.c')
-rw-r--r--src/html-url.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/html-url.c b/src/html-url.c
index 9691526..2f95357 100644
--- a/src/html-url.c
+++ b/src/html-url.c
@@ -1,5 +1,6 @@
/* Collect URLs from HTML source.
- Copyright (C) 1998-2012, 2015, 2018 Free Software Foundation, Inc.
+ Copyright (C) 1998-2012, 2015, 2018-2019 Free Software Foundation,
+ Inc.
This file is part of GNU Wget.
@@ -836,7 +837,11 @@ get_urls_html_fm (const char *file, const struct file_memory *fm,
#endif
xfree (meta_charset);
+ if (ctx.nofollow) {
+ logprintf(LOG_VERBOSE, _("no-follow attribute found in %s. Will not follow any links on this page\n"), file);
+ }
DEBUGP (("no-follow in %s: %d\n", file, ctx.nofollow));
+
if (meta_disallow_follow)
*meta_disallow_follow = ctx.nofollow;