fix: golang html template url escaping (#38363)

fix #38362
This commit is contained in:
wxiaoguang
2026-07-08 08:16:32 +08:00
committed by GitHub
parent 308a6f12ae
commit 49ef93940a
15 changed files with 44 additions and 22 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func TestUndoDeleteBranch(t *testing.T) {
}
onGiteaRun(t, func(t *testing.T, u *url.URL) {
htmlDoc, name := branchAction(t, ".delete-branch-button", "data-modal-form.action")
htmlDoc, name := branchAction(t, ".delete-branch-button", "data-modal-form.url")
assert.Contains(t,
htmlDoc.doc.Find(".ui.positive.message").Text(),
translation.NewLocale("en-US").TrString("repo.branch.deletion_success", name),