
From: Gilles Detillieux <grdetil@scrc.umanitoba.ca>
To: htdig@htdig.org
Subject: [htdig] Patch

This patch fixes <meta> robots parsing to allow multiple directives
to work correctly. Fixes PR#578, as provided by Chris Liddiard
<c.h.liddiard@qmw.ac.uk>.

--- htdig-3.1.2/htdig/HTML.cc.robotbug	Fri Jul 30 12:24:14 1999
+++ htdig-3.1.2/htdig/HTML.cc	Fri Jul 30 13:28:35 1999
@@ -873,9 +873,9 @@ HTML::do_tag(Retriever &retriever, Strin
 			doindex = 0;
 			retriever.got_noindex();
 		      }
-		    else if (content_cache.indexOf("nofollow") != -1)
+		    if (content_cache.indexOf("nofollow") != -1)
 		      dofollow = 0;
-		    else if (content_cache.indexOf("none") != -1)
+		    if (content_cache.indexOf("none") != -1)
 		      {
 			doindex = 0;
 			dofollow = 0;


