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
pull/1/head
orbiter 20 years ago
parent 795f488222
commit bc420c62f6

@ -429,8 +429,8 @@ public final class plasmaHTCache {
public File getCachePath(URL url) { public File getCachePath(URL url) {
// this.log.logFinest("plasmaHTCache: getCachePath: IN=" + url.toString()); // this.log.logFinest("plasmaHTCache: getCachePath: IN=" + url.toString());
String remotePath = url.getFile(); String remotePath = url.getFile();
if (remotePath.endsWith("/")) { remotePath = remotePath + "ndx"; }
if (!remotePath.startsWith("/")) { remotePath = "/" + remotePath; } if (!remotePath.startsWith("/")) { remotePath = "/" + remotePath; }
if (remotePath.endsWith("/")) { remotePath = remotePath + "ndx"; }
remotePath = remotePath.replaceAll("[?&:]", "_"); // yes this is not reversible, but that is not needed remotePath = remotePath.replaceAll("[?&:]", "_"); // yes this is not reversible, but that is not needed
int port = url.getPort(); int port = url.getPort();
if (port < 0) { if (port < 0) {

Loading…
Cancel
Save