From bc420c62f6c04907b79a5f6e3cf075c675a43b17 Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 7 Nov 2005 01:31:11 +0000 Subject: [PATCH] fixed htcache path generation (never change a running system) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1041 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaHTCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java index 2e0892751..f8d1cf157 100644 --- a/source/de/anomic/plasma/plasmaHTCache.java +++ b/source/de/anomic/plasma/plasmaHTCache.java @@ -429,8 +429,8 @@ public final class plasmaHTCache { public File getCachePath(URL url) { // this.log.logFinest("plasmaHTCache: getCachePath: IN=" + url.toString()); String remotePath = url.getFile(); - if (remotePath.endsWith("/")) { remotePath = remotePath + "ndx"; } if (!remotePath.startsWith("/")) { remotePath = "/" + remotePath; } + if (remotePath.endsWith("/")) { remotePath = remotePath + "ndx"; } remotePath = remotePath.replaceAll("[?&:]", "_"); // yes this is not reversible, but that is not needed int port = url.getPort(); if (port < 0) {