This commit is contained in:
NorthRealm
2025-05-28 11:46:12 +08:00
parent 894ef938af
commit d7be8677d4
+2 -2
View File
@@ -87,11 +87,11 @@ func ViewWorkflowFile(ctx *context_module.Context) {
}
for _, entry := range entries {
if entry.Name() == run.WorkflowID {
ctx.Redirect(fmt.Sprintf("%s/src/commit/%s/%s/%s", ctx.Repo.RepoLink, run.CommitSHA, rpath, run.WorkflowID))
ctx.Redirect(fmt.Sprintf("%s/src/commit/%s/%s/%s", ctx.Repo.RepoLink, url.PathEscape(run.CommitSHA), util.PathEscapeSegments(rpath), url.PathEscape(run.WorkflowID)))
return
}
}
ctx.JSONErrorNotFound()
ctx.NotFound(nil)
}
type LogCursor struct {