From 082073acda0d0273eaf5e5f66b57d44e7258dc63 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 13 Sep 2015 21:45:40 +0100 Subject: [PATCH] fix file path --- edit/edit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/edit.go b/edit/edit.go index c8a1dd8c..34abbbf7 100644 --- a/edit/edit.go +++ b/edit/edit.go @@ -17,7 +17,7 @@ type fileInfo struct { // Execute sth func Execute(w http.ResponseWriter, r *http.Request) (int, error) { - filename := strings.Replace(r.URL.Path, "admin/edit/", "", 1) + filename := strings.Replace(r.URL.Path, "/admin/edit/", "", 1) if r.Method == "POST" { r.ParseForm()