From 7fea51eceeff810ace48c3886f1ee8321106046c Mon Sep 17 00:00:00 2001 From: sixcooler Date: Tue, 31 May 2011 16:13:33 +0000 Subject: [PATCH] check filter to bee a correct pattern on edit CrawlProfiles see; http://forum.yacy-websuche.de/viewtopic.php?f=5&t=3277&p=22662#p22660 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7764 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/CrawlProfileEditor_p.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htroot/CrawlProfileEditor_p.java b/htroot/CrawlProfileEditor_p.java index 41c7eb591..bf231d500 100644 --- a/htroot/CrawlProfileEditor_p.java +++ b/htroot/CrawlProfileEditor_p.java @@ -32,6 +32,7 @@ import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeMap; +import java.util.regex.Pattern; import net.yacy.cora.protocol.RequestHeader; import net.yacy.kelondro.index.RowSpaceExceededException; @@ -153,6 +154,8 @@ public class CrawlProfileEditor_p { if ((post != null) && (selentry != null)) { if (post.containsKey("submit")) { try { + Pattern.compile(post.get(CrawlProfile.FILTER_MUSTMATCH, CrawlProfile.MATCH_ALL)); + Pattern.compile(post.get(CrawlProfile.FILTER_MUSTNOTMATCH, CrawlProfile.MATCH_NEVER)); final Iterator lit = labels.iterator(); eentry tee; while (lit.hasNext()) {