Skip to content

Commit

Permalink
Bugfix for www and share.
Browse files Browse the repository at this point in the history
  • Loading branch information
allo committed Oct 19, 2005
1 parent 7256bea commit 4db2080
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/de/anomic/http/httpdFileHandler.java
Expand Up @@ -415,17 +415,20 @@ public void doResponse(Properties conProp, httpHeader requestHeader, OutputStrea
try {
// locate the file
if (!(path.startsWith("/"))) path = "/" + path; // attach leading slash
File targetFile = new File(htDefaultPath, path);
File targetFile = getLocalizedFile(path);
String targetExt = conProp.getProperty("EXT","");
if (path.endsWith("/")) {
String testpath;
// attach default file name
for (int i = 0; i < defaultFiles.length; i++) {
testpath = path + defaultFiles[i];
targetFile = new File(htDefaultPath, testpath);
targetFile = getLocalizedFile(testpath);
if (!(targetFile.exists())) targetFile = new File(htDocsPath, testpath);
if (targetFile.exists()) {path = testpath; break;}
}
}else{
if (!(targetFile.exists())) targetFile = new File(htDocsPath, path);

}

File targetClass = rewriteClassFile(targetFile);
Expand Down

0 comments on commit 4db2080

Please sign in to comment.