This commit is contained in:
Malcolm Holmes
2021-12-07 15:04:55 +00:00
parent 3a560293c2
commit d2cccfe91e
+1 -1
View File
@@ -265,7 +265,7 @@ func (hs *HTTPServer) getPluginAssets(c *models.ReqContext) {
} }
// prepend slash for cleaning relative paths // prepend slash for cleaning relative paths
requestedFile := filepath.Clean(filepath.Join("/",macaron.Params(c.Req)["*"])) requestedFile := filepath.Clean(filepath.Join("/", macaron.Params(c.Req)["*"]))
rel, err := filepath.Rel("/", requestedFile) rel, err := filepath.Rel("/", requestedFile)
if err != nil { if err != nil {
// slash is prepended above therefore this is not expected to fail // slash is prepended above therefore this is not expected to fail