mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 10:45:24 +00:00
parent
b1c36ec71f
commit
68c4072bd1
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ func (h Hugo) Hook(c *fm.Context, w http.ResponseWriter, r *http.Request) (int,
|
|||
return http.StatusForbidden, nil
|
||||
}
|
||||
|
||||
filename := filepath.Join(c.User.Scope, r.URL.Path)
|
||||
filename := filepath.Clean(r.URL.Path)
|
||||
filename = strings.TrimPrefix(filename, string(filepath.Separator))
|
||||
archetype := r.Header.Get("archetype")
|
||||
|
||||
ext := filepath.Ext(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue