diff --git a/yacy.logging b/defaults/yacy.logging similarity index 100% rename from yacy.logging rename to defaults/yacy.logging diff --git a/htroot/Load_RSS_p.java b/htroot/Load_RSS_p.java index 8f9511765..3209f8058 100644 --- a/htroot/Load_RSS_p.java +++ b/htroot/Load_RSS_p.java @@ -1,5 +1,5 @@ /** - * oad_RSS_p + * Load_RSS_p * Copyright 2010 by Michael Peter Christen, mc@yacy.net, Frankfurt am Main, Germany * First released 20.08.2010 at http://yacy.net * @@ -26,6 +26,7 @@ import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.Map; +import java.util.regex.Pattern; import net.yacy.cora.document.Hit; import net.yacy.cora.document.RSSFeed; @@ -83,7 +84,7 @@ public class Load_RSS_p { if (messageurl.length() == 0) continue; final byte[] api_pk = row.get("api_pk"); final Row r = api_pk == null ? null : sb.tables.select("api", api_pk); - if (r == null || !r.get("comment", "").matches(".*\\Q" + messageurl + "\\E.*")) { + if (r == null || !r.get("comment", "").matches(".*" + Pattern.quote(messageurl) + ".*")) { d.add(row.getPK()); } } @@ -125,7 +126,7 @@ public class Load_RSS_p { if (messageurl.length() == 0) continue; final byte[] api_pk = row.get("api_pk"); final Row r = api_pk == null ? null : sb.tables.select("api", api_pk); - if (r != null && r.get("comment", "").matches(".*\\Q" + messageurl + "\\E.*")) { + if (r != null && r.get("comment", "").matches(".*" + Pattern.quote(messageurl) + ".*")) { d.add(row.getPK()); } } @@ -194,7 +195,7 @@ public class Load_RSS_p { // check if feed is registered in scheduler final byte[] api_pk = row.get("api_pk"); final Row r = api_pk == null ? null : sb.tables.select("api", api_pk); - if (r != null && r.get("comment", "").matches(".*\\Q" + messageurl + "\\E.*")) { + if (r != null && r.get("comment", "").matches(".*" + Pattern.quote(messageurl) + ".*")) { // this is a recorded entry final Date date_next_exec = r.get(WorkTables.TABLE_API_COL_DATE_NEXT_EXEC, (Date) null); prop.put("showscheduledfeeds_list_" + apic + "_pk", UTF8.String(row.getPK())); diff --git a/htroot/index.html b/htroot/index.html index 277270f8e..ed78a76b5 100644 --- a/htroot/index.html +++ b/htroot/index.html @@ -1,4 +1,3 @@ -
#(forward)#::#(/forward)# diff --git a/htroot/yacyinteractive.java b/htroot/yacyinteractive.java index 01696fe54..959dbec48 100644 --- a/htroot/yacyinteractive.java +++ b/htroot/yacyinteractive.java @@ -54,9 +54,9 @@ public class yacyinteractive { prop.put("startRecord", startRecord); prop.put("maximumRecords", maximumRecords); prop.putHTML("querys", query.replaceAll(" ", "+")); - prop.put("serverlist", query.length() == 0 ? 1 : 0); + prop.put("serverlist", query.isEmpty() ? 1 : 0); prop.put("focus", focus ? 1 : 0); prop.put("allowrealtime", sb.indexSegments.URLCount() < 100000 ? 1 : 0); return prop; } -} \ No newline at end of file +} diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html index ade1b8ed6..d1c5fc76d 100644 --- a/htroot/yacysearch.html +++ b/htroot/yacysearch.html @@ -252,4 +252,4 @@ window.setTimeout('latestinfo();',10000); - \ No newline at end of file +