all repos — elgit @ 44e7c584adf41a335897f8a9a9722138a6f19670

fork of legit: web frontend for git, written in go

don't use user input for repository path access

Alan Pearce
commit

44e7c584adf41a335897f8a9a9722138a6f19670

parent

9c621945f4985e3fce4e12fc25e1d7898b117aa3

1 file changed, 0 insertions(+), 7 deletions(-)

changed files
M routes/handler.goroutes/handler.go
@@ -126,15 +126,8 @@ log.Printf("access not allowed: %s", repoName)
return ErrNotFound } - path, err := d.GetCleanPath(repoName) - if err != nil { - log.Printf("getcleanpath error: %v", err) - - return ErrNotFound - } rc.SetUserValue("repoName", repoName) - rc.SetUserValue("repoPath", path) return rc.Next() })