bugfix for broken HTDOCS

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@938 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 4320425a17
commit 6430fa520e

@ -428,12 +428,6 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
} }
} }
if (!(targetFile.exists())) {
// try to find that file in the htDocsPath
File trialFile = new File(htDocsPath, path);
if (trialFile.exists()) targetFile = trialFile;
}
File targetClass = rewriteClassFile(targetFile); File targetClass = rewriteClassFile(targetFile);
Date targetDate; Date targetDate;
@ -488,6 +482,12 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
path.endsWith("pac")) { path.endsWith("pac")) {
targetFile = getLocalizedFile(path); targetFile = getLocalizedFile(path);
if (!(targetFile.exists())) {
// try to find that file in the htDocsPath
File trialFile = new File(htDocsPath, path);
if (trialFile.exists()) targetFile = trialFile;
}
// call rewrite-class // call rewrite-class
serverObjects tp = new serverObjects(); serverObjects tp = new serverObjects();

Loading…
Cancel
Save