diff --git a/engine/dirhandler.go b/engine/dirhandler.go index 82e36c9e2..dca0936ad 100644 --- a/engine/dirhandler.go +++ b/engine/dirhandler.go @@ -5,7 +5,6 @@ package engine import ( "bytes" "net/http" - "net/url" "path/filepath" "strings" @@ -66,7 +65,7 @@ func (ac *Config) DirectoryListing(w http.ResponseWriter, req *http.Request, roo fullFilename += filename // Remove the root directory from the link path - URLpath = url.QueryEscape(fullFilename[len(rootdir)+1:]) + URLpath = fullFilename[len(rootdir)+1:] // Output different entries for files and directories buf.WriteString(themes.HTMLLink(filename, URLpath, ac.fs.IsDir(fullFilename)))