From 3feeba3d7be3c1996194783cfcf93704234afab2 Mon Sep 17 00:00:00 2001 From: theli Date: Thu, 26 Jan 2006 09:34:50 +0000 Subject: [PATCH] *) better handling of urls containing query parameters git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1445 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/QuickCrawlLink_p.html | 2 +- htroot/QuickCrawlLink_p.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/htroot/QuickCrawlLink_p.html b/htroot/QuickCrawlLink_p.html index da1c8be4b..473877cba 100644 --- a/htroot/QuickCrawlLink_p.html +++ b/htroot/QuickCrawlLink_p.html @@ -35,7 +35,7 @@ If you click on it while browsing, the currently viewed website will be inserted -  Crawl with YaCy +  Crawl with YaCy diff --git a/htroot/QuickCrawlLink_p.java b/htroot/QuickCrawlLink_p.java index c4952d4a8..1d4ff307a 100644 --- a/htroot/QuickCrawlLink_p.java +++ b/htroot/QuickCrawlLink_p.java @@ -48,8 +48,10 @@ //if the shell's current path is HTROOT +import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URL; +import java.net.URLDecoder; import java.util.Date; import de.anomic.htmlFilter.htmlFilterContentScraper; @@ -99,6 +101,12 @@ public class QuickCrawlLink_p { // getting the URL String crawlingStart = post.get("url",null); + try { + crawlingStart = URLDecoder.decode(crawlingStart, "UTF-8"); + } catch (UnsupportedEncodingException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } // getting the browser title String title = post.get("title",null);