fix file path

This commit is contained in:
Henrique Dias 2015-09-13 21:45:40 +01:00
parent 449108dc1f
commit 082073acda
1 changed files with 1 additions and 1 deletions

View File

@ -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()