diff options
author | zeripath <art27@cantab.net> | 2022-02-11 05:02:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 13:02:04 +0800 |
commit | b2b3225bd1f6d6ff519d7a464c7fcf7ff0c6bdcc (patch) | |
tree | 583e0d2e0b832cc6f7dea280b653fb8de1ab5b72 /templates/mail/issue/assigned.tmpl | |
parent | f9e7edc5d9708206def69ecdfb65d186a69cab67 (diff) | |
download | gitea-b2b3225bd1f6d6ff519d7a464c7fcf7ff0c6bdcc.tar.gz gitea-b2b3225bd1f6d6ff519d7a464c7fcf7ff0c6bdcc.zip |
Prevent double encoding of branch names in delete branch (#18714)
* Prevent double encoding of branch names in delete branch
There is a double encoding issue in branch template whereby the branch name
ends up double encoded.
Fix #18709
Signed-off-by: Andrew Thornton <art27@cantab.net>
* and tag name
Signed-off-by: Andrew Thornton <art27@cantab.net>
* And fix #18704
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/mail/issue/assigned.tmpl')
-rw-r--r-- | templates/mail/issue/assigned.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mail/issue/assigned.tmpl b/templates/mail/issue/assigned.tmpl index e1156c5335..ffb15ef677 100644 --- a/templates/mail/issue/assigned.tmpl +++ b/templates/mail/issue/assigned.tmpl @@ -9,7 +9,7 @@ </head> {{$repo_url := printf "<a href='%s'>%s</a>" (Escape .Issue.Repo.HTMLURL) (Escape .Issue.Repo.FullName)}} -{{$link := printf "<a href='%s'>#%d</a>" (Escape .Link) (Escape .Issue.Index)}} +{{$link := printf "<a href='%s'>#%d</a>" (Escape .Link) .Issue.Index}} <body> <p> {{if .IsPull}} |