From eab72424dfdce28f37841ab5dfb7844cac23d557 Mon Sep 17 00:00:00 2001 From: low012 Date: Sun, 28 Dec 2008 09:58:02 +0000 Subject: [PATCH] *) Fixed small bug: When adding new elements to blacklist via import, the blacklist which the elements were added to was supposed to be displayed, which did not work correctly. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5414 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/sharedBlacklist_p.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/htroot/sharedBlacklist_p.java b/htroot/sharedBlacklist_p.java index a46ff3aa8..cbfe9961e 100644 --- a/htroot/sharedBlacklist_p.java +++ b/htroot/sharedBlacklist_p.java @@ -39,6 +39,7 @@ import java.util.List; import de.anomic.crawler.HTTPLoader; import de.anomic.data.listManager; +import de.anomic.htmlFilter.htmlFilterCharacterCoding; import de.anomic.http.HttpClient; import de.anomic.http.httpRequestHeader; import de.anomic.index.indexAbstractReferenceBlacklist; @@ -233,8 +234,12 @@ public class sharedBlacklist_p { } finally { if (pw != null) try { pw.close(); } catch (final Exception e){ /* */} } - - prop.putHTML("LOCATION","Blacklist_p.html?selectedListName=" + selectedBlacklistName + "&selectList="); + + /* unable to use prop.putHTML() or prop.putXML() here because they + * turn the ampersand into & which renders the parameters + * useless (at least when using Opera 9.53, haven't tested other browsers) + */ + prop.put("LOCATION","Blacklist_p.html?selectedListName=" + htmlFilterCharacterCoding.unicode2html(selectedBlacklistName, true) + "&selectList=select"); return prop; }