From 2260799a6234a07c3f3e475214fcfd39ba8091a5 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 11 Jun 2016 23:00:07 +0200 Subject: [PATCH] Fix webserver directory listing being wrong HTML The HTML created for the directory listing was not well-formed. --- webserver/src/main/java/fi/iki/elonen/SimpleWebServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver/src/main/java/fi/iki/elonen/SimpleWebServer.java b/webserver/src/main/java/fi/iki/elonen/SimpleWebServer.java index 7b39da8d..7a051dcf 100644 --- a/webserver/src/main/java/fi/iki/elonen/SimpleWebServer.java +++ b/webserver/src/main/java/fi/iki/elonen/SimpleWebServer.java @@ -317,12 +317,12 @@ public boolean accept(File dir, String name) { if (up != null || directories.size() > 0) { msg.append("
"); if (up != null) { - msg.append("
  • ..
  • "); + msg.append("
  • ..
  • "); } for (String directory : directories) { String dir = directory + "/"; msg.append("
  • ").append(dir) - .append("
  • "); + .append(""); } msg.append("
    "); }