Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

allow crawl start from pages with script tags http://forum.yacy-websuche.de/viewtopic.php?f=5&t=1910

lotusf35dc11dc496
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.java
index 5682b2972..1a189b508 100644
--- a/source/de/anomic/http/httpdFileHandler.java
+++ b/source/de/anomic/http/httpdFileHandler.java
@@ -382,7 +382,7 @@ public final class httpdFileHandler {
String val;
while (e.hasNext()) {
val = e.next();
- if ((val != null) && (val.indexOf("<script") >= 0)) {
+ if ((val != null) && (val.indexOf("<script") >= 0) && !path.equals("/WatchCrawler_p.html")) {
// deny request
httpd.sendRespondError(conProp,out,4,403,null,"bad post values",null);
return;