all repos — flounder @ 80ed56659ae6ebf55bd90aea552acacf0d2efc3e

A small site builder for the Gemini protocol

bug fix
alex wennerberg alex@alexwennerberg.com
Wed, 18 Nov 2020 19:39:47 -0800
commit

80ed56659ae6ebf55bd90aea552acacf0d2efc3e

parent

a74256627667d2f0329e264adb88477110ef0f25

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M http.gohttp.go

@@ -144,6 +144,7 @@ }

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)