chore(ui): annotate the intention redirect for gosec

The target is a same-origin path built from a stored mind slug and a
parsed UUID.
This commit is contained in:
Andy Dixon
2026-10-01 19:48:59 +01:00
parent 7d67745ff8
commit da0df12bcb
+1 -1
View File
@@ -126,7 +126,7 @@ func (u *UI) intentionRedirect(w http.ResponseWriter, r *http.Request) {
u.errorPage(w, r, http.StatusNotFound, "No such mind.") u.errorPage(w, r, http.StatusNotFound, "No such mind.")
return return
} }
http.Redirect(w, r, "/minds/"+m.Slug+"/intentions/"+string(id), http.StatusSeeOther) http.Redirect(w, r, "/minds/"+m.Slug+"/intentions/"+string(id), http.StatusSeeOther) // #nosec G710 -- same-origin path built from a stored slug and a parsed UUID
} }
// dagLevel is one column of a plan's dependency graph. // dagLevel is one column of a plan's dependency graph.