Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for bug in html scraper that appears if opening and closing tag are not both in same case see http://forum.yacy-websuche.de/viewtopic.php?f=6&t=1173&p=7836#p7836
orbiterf8b015949c54
diff --git a/source/de/anomic/htmlFilter/htmlFilterContentScraper.java b/source/de/anomic/htmlFilter/htmlFilterContentScraper.javaindex b601783c6..467e9ef80 100644--- a/source/de/anomic/htmlFilter/htmlFilterContentScraper.java+++ b/source/de/anomic/htmlFilter/htmlFilterContentScraper.java@@ -72,6 +72,7 @@ public class htmlFilterContentScraper extends htmlFilterAbstractScraper implemenprivate static final HashSet<String> linkTags0 = new HashSet<String>(9,0.99f);private static final HashSet<String> linkTags1 = new HashSet<String>(7,0.99f);+ // all these tags must be given in lowercase, because the tags from the files are compared in lowercasestatic {linkTags0.add("img");linkTags0.add("base");diff --git a/source/de/anomic/htmlFilter/htmlFilterWriter.java b/source/de/anomic/htmlFilter/htmlFilterWriter.javaindex e0e43cbf5..13ab82e68 100644--- a/source/de/anomic/htmlFilter/htmlFilterWriter.java+++ b/source/de/anomic/htmlFilter/htmlFilterWriter.java@@ -231,7 +231,7 @@ public final class htmlFilterWriter extends Writer {}// it's a tag! which one?- if ((opening) || (!(tag.equals(filterTag)))) {+ if ((opening) || (!(tag.equalsIgnoreCase(filterTag)))) {// this tag is not our concern. just add itfilterCont.append(genTag0raw(tag, opening, content));return new char[0];