summaryrefslogtreecommitdiffstats
path: root/templates/org/team/repositories.tmpl
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-02-25 14:28:47 -0600
committerGitHub <noreply@github.com>2020-02-25 14:28:47 -0600
commitc161bb013e091c0bcc524f07d50c028d9daf8cce (patch)
tree0638e74576902e5c18cb77b3e469a5435cf707e5 /templates/org/team/repositories.tmpl
parent4427a936b4c7bd07908ccbe96104928dd29cf59d (diff)
downloadgitea-c161bb013e091c0bcc524f07d50c028d9daf8cce.tar.gz
gitea-c161bb013e091c0bcc524f07d50c028d9daf8cce.zip
Change action GETs to POST (#10462)
* Change action GETs to POST * submite = submit + smite * No more # href * Fix test * Match other tests * Explicit csrf Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'templates/org/team/repositories.tmpl')
-rw-r--r--templates/org/team/repositories.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl
index e81ff889eb..d6046f86a3 100644
--- a/templates/org/team/repositories.tmpl
+++ b/templates/org/team/repositories.tmpl
@@ -35,7 +35,10 @@
{{range .Team.Repos}}
<div class="item">
{{if $canAddRemove}}
- <a class="ui red small button right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/remove?repoid={{.ID}}">{{$.i18n.Tr "remove"}}</a>
+ <form method="post" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/remove?repoid={{.ID}}">
+ {{$.CsrfTokenHtml}}
+ <button type="submit" class="ui red small button right">{{$.i18n.Tr "remove"}}</button>
+ </form>
{{end}}
<a class="member" href="{{AppSubUrl}}/{{$.Org.Name}}/{{.Name}}">
{{if .IsPrivate}}