From c45e47bf91645f87dba92af795ef5505ab46746a Mon Sep 17 00:00:00 2001 From: low012 Date: Mon, 28 Nov 2005 16:51:59 +0000 Subject: [PATCH] fixed vulnerability, see http://www.yacy-forum.de/viewtopic.php?t=1535 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1136 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexCreateIndexingQueue_p.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htroot/IndexCreateIndexingQueue_p.java b/htroot/IndexCreateIndexingQueue_p.java index 1dd3f25e9..d95945bd0 100644 --- a/htroot/IndexCreateIndexingQueue_p.java +++ b/htroot/IndexCreateIndexingQueue_p.java @@ -140,9 +140,7 @@ public class IndexCreateIndexingQueue_p { entryList.addAll(switchboard.sbQueue.list(0)); } - int count=entryList.size(); - if(count>100)count=100; - for (int i = 0; i < count; i++) { + for (int i = 0; i < entryList.size(); i++) { boolean inProcess = i < inProcessCount; pcentry = (plasmaSwitchboardQueue.Entry) entryList.get(i); long entrySize = pcentry.size(); @@ -153,7 +151,7 @@ public class IndexCreateIndexingQueue_p { prop.put("indexing-queue_list_"+entryCount+"_initiator", ((initiator == null) ? "proxy" : wikiCode.replaceHTML(initiator.getName()))); prop.put("indexing-queue_list_"+entryCount+"_depth", pcentry.depth()); prop.put("indexing-queue_list_"+entryCount+"_modified", (pcentry.responseHeader() == null) ? "" : daydate(pcentry.responseHeader().lastModified())); - prop.put("indexing-queue_list_"+entryCount+"_anchor", (pcentry.anchorName()==null)?"":pcentry.anchorName()); + prop.put("indexing-queue_list_"+entryCount+"_anchor", (pcentry.anchorName()==null)?"":wikiCode.replaceHTML(pcentry.anchorName())); prop.put("indexing-queue_list_"+entryCount+"_url", wikiCode.replaceHTML(pcentry.normalizedURLString())); prop.put("indexing-queue_list_"+entryCount+"_size", bytesToString(entrySize)); prop.put("indexing-queue_list_"+entryCount+"_inProcess", (inProcess)?1:0);