all repos — flounder @ e43213d25ed63fc07fd69f146e79f3360414ffeb

A small site builder for the Gemini protocol

Fix path bug
alex wennerberg alex@alexwennerberg.com
Sun, 27 Dec 2020 15:38:00 -0800
commit

e43213d25ed63fc07fd69f146e79f3360414ffeb

parent

c151228b11c1cd78e406d351d08607cf02949e85

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

jump to
M http.gohttp.go

@@ -557,11 +557,8 @@ files, _ := ioutil.ReadDir(fileName)

renderedFiles := []File{} for _, file := range files { n := file.Name() - if file.IsDir() { - n += "/" - } newFile := File{ - Name: n, + Name: path.Join(p, n), // SHOULD be safe UpdatedTime: file.ModTime(), Host: c.Host, Creator: getCreator(fileName),