flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 80ed56659ae6ebf55bd90aea552acacf0d2efc3e
parent a74256627667d2f0329e264adb88477110ef0f25
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed, 18 Nov 2020 19:39:47 -0800

bug fix

Diffstat:
Mhttp.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/http.go b/http.go @@ -144,6 +144,7 @@ func editFileHandler(w http.ResponseWriter, r *http.Request) { newName := filepath.Clean(r.Form.Get("rename")) if newName != fileName { newPath := path.Join(c.FilesDirectory, authUser, newName) + os.MkdirAll(path.Dir(newPath), os.ModePerm) os.Rename(filePath, newPath) } http.Redirect(w, r, "/my_site", 303)