diff --git a/src/helma/main/ApplicationManager.java b/src/helma/main/ApplicationManager.java index ce0ae37c..0d553d8f 100644 --- a/src/helma/main/ApplicationManager.java +++ b/src/helma/main/ApplicationManager.java @@ -182,7 +182,7 @@ public class ApplicationManager { } if (server.http != null) { // add handler for static files. - File staticContent = new File (server.getHopHome(), "static"); + File staticContent = new File (server.getHopHome(), "static").getCanonicalFile(); Server.getLogger().log("Serving static content from "+staticContent.getAbsolutePath()); HandlerContext context = server.http.addContext ("/static/*"); context.setResourceBase (staticContent.getAbsolutePath());