From 2cbda9de6165d8f96b48d82b81d692cee3333fbd Mon Sep 17 00:00:00 2001 From: Chris Manghane Date: Mon, 16 Dec 2013 14:50:09 -0800 Subject: [PATCH] go.tools/dashboard: Fix incorrect parsing of log hash. R=adg CC=golang-dev https://golang.org/cl/43000043 --- dashboard/app/build/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/app/build/handler.go b/dashboard/app/build/handler.go index 55010ec6..a6da710a 100644 --- a/dashboard/app/build/handler.go +++ b/dashboard/app/build/handler.go @@ -335,7 +335,7 @@ func resultHandler(r *http.Request) (interface{}, error) { func logHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-type", "text/plain; charset=utf-8") c := contextForRequest(r) - hash := r.URL.Path[len("/log/"):] + hash := r.URL.Path[strings.LastIndex(r.URL.Path, "/")+1:] key := datastore.NewKey(c, "Log", hash, 0, nil) l := new(Log) if err := datastore.Get(c, key, l); err != nil {