|
|
|
@ -109,6 +109,7 @@ import net.yacy.cora.util.ConcurrentLog;
|
|
|
|
|
import net.yacy.cora.util.NumberTools;
|
|
|
|
|
import net.yacy.data.UserDB;
|
|
|
|
|
import net.yacy.document.parser.htmlParser;
|
|
|
|
|
import net.yacy.document.parser.html.CharacterCoding;
|
|
|
|
|
import net.yacy.document.parser.html.ContentScraper;
|
|
|
|
|
import net.yacy.document.parser.html.ScraperInputStream;
|
|
|
|
|
import net.yacy.kelondro.util.FileUtils;
|
|
|
|
@ -484,7 +485,7 @@ public final class HTTPDFileHandler {
|
|
|
|
|
//no defaultfile, send a dirlisting
|
|
|
|
|
if (targetFile == null || !targetFile.exists() || (targetFile.exists() && targetFile.isDirectory())) {
|
|
|
|
|
final StringBuilder aBuffer = new StringBuilder();
|
|
|
|
|
aBuffer.append("<html>\n<head>\n</head>\n<body>\n<h1>Index of " + path + "</h1>\n <ul>\n");
|
|
|
|
|
aBuffer.append("<html>\n<head>\n</head>\n<body>\n<h1>Index of " + CharacterCoding.unicode2html(path, true) + "</h1>\n <ul>\n");
|
|
|
|
|
String[] list = targetFile.list();
|
|
|
|
|
if (list == null) list = new String[0]; // should not occur!
|
|
|
|
|
File f;
|
|
|
|
|