From 9d9a87f4457c1d368d96e94a837f4820cb4de52b Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 16 Nov 2005 18:40:44 +0000 Subject: [PATCH] limited htcache storage length git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1096 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaHTCache.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java index 01b398fe2..113c17be1 100644 --- a/source/de/anomic/plasma/plasmaHTCache.java +++ b/source/de/anomic/plasma/plasmaHTCache.java @@ -655,6 +655,7 @@ public final class plasmaHTCache { // we cannot match that here in the cache file path and therefore omit writing into the cache if (this.cacheFile.getParentFile().isFile() || this.cacheFile.isDirectory()) { return "path_ambiguous"; } if (this.cacheFile.toString().indexOf("..") >= 0) { return "path_dangerous"; } + if (this.cacheFile.getAbsolutePath().length() > 250) { return "path too long"; } // -CGI access in request // CGI access makes the page very individual, and therefore not usable in caches