mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-19 08:44:42 -04:00
*) Bugfix for file system link bug during detection of invalid URLs
See: http://www.yacy-forum.de/viewtopic.php?p=13301 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1134 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
@ -362,7 +362,7 @@ public final class plasmaCrawlWorker extends Thread {
|
||||
|
||||
// reserve cache entry
|
||||
plasmaHTCache.Entry htCache = cacheManager.newEntry(requestDate, depth, url, name, requestHeader, res.status, res.responseHeader, initiator, profile);
|
||||
if (!htCache.cacheFile.getCanonicalPath().startsWith(cacheManager.cachePath.getAbsolutePath())) {
|
||||
if (!htCache.cacheFile.getCanonicalPath().startsWith(cacheManager.cachePath.getCanonicalPath())) {
|
||||
// if the response has not the right file type then reject file
|
||||
remote.close();
|
||||
log.logInfo("REJECTED URL " + url.toString() + " because of an invalid file path ('" +
|
||||
|
Reference in New Issue
Block a user