Skip to content

Commit

Permalink
*) changing reference to logger
Browse files Browse the repository at this point in the history
*) bugfix in function getCachePath

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@249 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Jun 9, 2005
1 parent fbbea81 commit 68f3081
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/de/anomic/plasma/plasmaHTCache.java
Expand Up @@ -67,7 +67,7 @@ the class shall also be used to do a cache-cleaning and index creation
import de.anomic.kelondro.kelondroMap;
import de.anomic.server.serverFileUtils;
import de.anomic.server.serverInstantThread;
import de.anomic.server.serverLog;
import de.anomic.server.logging.serverLog;
import de.anomic.tools.enumerateFiles;

public final class plasmaHTCache {
Expand Down Expand Up @@ -413,7 +413,9 @@ public File getCachePath(URL url) {
if (!(remotePath.startsWith("/"))) remotePath = "/" + remotePath;
if (remotePath.endsWith("/")) remotePath = remotePath + "ndx";
if (remotePath.indexOf('#') > 0) remotePath.substring(0, remotePath.indexOf('#'));
remotePath = remotePath.replace('?', '_'); remotePath = remotePath.replace('&', '_'); // yes this is not reversible, but that is not needed
remotePath = remotePath.replace('?', '_');
remotePath = remotePath.replace('&', '_'); // yes this is not reversible, but that is not needed
remotePath = remotePath.replace(':', '_'); // yes this is not reversible, but that is not needed
int port = url.getPort();
if (port < 0) port = 80;
return new File(this.cachePath, url.getHost() + ((port == 80) ? "" : ("+" + port)) + remotePath);
Expand Down

0 comments on commit 68f3081

Please sign in to comment.