From 564e41eaff4897fa5dc9b50bb2445fb3583594f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kierski?= Date: Mon, 10 Apr 2023 20:15:57 +0200 Subject: [PATCH] Fixed duplicated phrase --- static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static.go b/static.go index 20d60fa..baf27ac 100644 --- a/static.go +++ b/static.go @@ -29,7 +29,7 @@ type uiAssetsHandler struct { // serve the file specified by the URL path. func (h *uiAssetsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // Get the absolute path to prevent directory traversal. - path := filepath.filepath.ToSlash(filepath.Clean(r.URL.Path)) + path := filepath.ToSlash(filepath.Clean(r.URL.Path)) // Get the path relative to the root path. if !strings.HasPrefix(path, h.rootPath) {