Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for file-share access; damaged some commits before by me :-(
orbiter1b2db0b52a16
diff --git a/htroot/env/grafics/notifier.gif b/htroot/env/grafics/notifier.gifindex 1a5520f05..330c7e881 100644Binary files a/htroot/env/grafics/notifier.gif and b/htroot/env/grafics/notifier.gif differdiff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.javaindex 85c20808f..29c45e070 100644--- a/source/de/anomic/http/httpdFileHandler.java+++ b/source/de/anomic/http/httpdFileHandler.java@@ -378,25 +378,24 @@ public final class httpdFileHandler extends httpdAbstractHandler implements httptry {// locate the file- if (!(path.startsWith("/"))) {- // attach leading slash- path = "/" + path;- }-- // find defaults- String testpath = path;+ if (!(path.startsWith("/"))) path = "/" + path; // attach leading slash+ File targetFile = new File(htDefaultPath, path);if (path.endsWith("/")) {- File file;+ String testpath;// attach default file namefor (int i = 0; i < defaultFiles.length; i++) {testpath = path + defaultFiles[i];- file = new File(htDefaultPath, testpath);- if (!(file.exists())) file = new File(htDocsPath, testpath);- if (file.exists()) {path = testpath; break;}+ targetFile = new File(htDefaultPath, testpath);+ if (!(targetFile.exists())) targetFile = new File(htDocsPath, testpath);+ if (targetFile.exists()) {path = testpath; break;}}}- File targetFile = new File(htDefaultPath, path);+ if (!(targetFile.exists())) {+ // try to find that file in the htDocsPath+ targetFile = new File(htDocsPath, path);+ }+File targetClass = rewriteClassFile(targetFile);String targetExt = conProp.getProperty("EXT","");Date targetDate;