Skip to content

Commit

Permalink
Use canonical paths when creating static contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
p3k committed May 25, 2024
1 parent 7caf52c commit 71c99f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/helma/main/ApplicationManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void bind() {

// if there is a static direcory specified, mount it
if (this.staticDir != null) {
String staticPath = getAbsoluteFile(this.staticDir).getPath();
String staticPath = getAbsoluteFile(this.staticDir).getCanonicalPath();

getLogger().info("Serving static from " + staticPath);
getLogger().info("Mounting static at " + staticMountpoint);
Expand Down Expand Up @@ -537,7 +537,7 @@ void bind() {
}

if (protectedStaticDir != null) {
String protectedContent = getAbsoluteFile(protectedStaticDir).getPath();
String protectedContent = getAbsoluteFile(protectedStaticDir).getCanonicalPath();
appContext.setBaseResourceAsString(protectedContent);
getLogger().info("Serving protected static from " + protectedContent);
}
Expand Down

0 comments on commit 71c99f6

Please sign in to comment.