From 9d8dca750eecfe5d72911a372fb3fae9077ec5bd Mon Sep 17 00:00:00 2001 From: borg-0300 Date: Tue, 10 Jan 2006 10:38:11 +0000 Subject: [PATCH] BUGFIX for my last commit git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1306 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaHTCache.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java index 5c8ebd57a..c5d0d9d51 100644 --- a/source/de/anomic/plasma/plasmaHTCache.java +++ b/source/de/anomic/plasma/plasmaHTCache.java @@ -521,7 +521,7 @@ public final class plasmaHTCache { public File getCachePath(URL url) { // this.log.logFinest("plasmaHTCache: getCachePath: IN=" + url.toString()); String path = url.getPath(); - String query = url.getQuery().replaceAll("[\"\\/:*?<>|]", "_"); // yes this is not reversible, but that is not needed (really?) + String query = url.getQuery(); if (!path.startsWith("/")) { path = "/" + path; } if (path.endsWith("/") && query == null) { path = path + "ndx"; } @@ -531,8 +531,9 @@ public final class plasmaHTCache { path = matcher.replaceAll("/!!/"); matcher.reset(path); } - if (query != null) { path = path.concat("_").concat(query); } - + if (query != null) { + path = path.concat("_").concat(query.replaceAll("[\"\\/:*?<>|]", "_")); // yes this is not reversible, but that is not needed + } // only set NO default ports int port = url.getPort(); String protocol = url.getProtocol();