all repos — flounder @ b018dfaaadf20d89645330d7acaf094d60779f69

A small site builder for the Gemini protocol

bug fix
alex wennerberg alex@alexwennerberg.com
Sat, 21 Nov 2020 14:04:54 -0800
commit

b018dfaaadf20d89645330d7acaf094d60779f69

parent

904a619b566e69eac12b9d7e2822b24dc4f74263

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

jump to
M gemini.gogemini.go

@@ -43,7 +43,7 @@ userName := filepath.Clean(strings.Split(r.URL.Host, ".")[0]) // clean probably unnecessary

fileName := filepath.Clean(r.URL.Path) if fileName == "/" { fileName = "index.gmi" - } else if strings.HasPrefix(fileName, ".hidden") { + } else if strings.HasPrefix(fileName, "/.hidden") { w.WriteStatus(gmi.StatusNotFound) return }