summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2018-02-11 14:42:28 +0100
committerLauris BH <lauris@nix.lv>2018-02-11 15:42:28 +0200
commit2cb4649acf73ce9a7b6c2b3f707673d89a789f46 (patch)
tree6405d4e881d5010c0f33c7bbbe93328a6b6a3d08 /templates/repo
parent6eaeb01ecf1471517bbd4882ab7450f4f45a6f1c (diff)
downloadgitea-2cb4649acf73ce9a7b6c2b3f707673d89a789f46.tar.gz
gitea-2cb4649acf73ce9a7b6c2b3f707673d89a789f46.zip
Escape search query (#3486)
Signed-off-by: Jonas Franz <info@jonasfranz.de>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/search.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/search.tmpl b/templates/repo/search.tmpl
index 19a9d4474c..3ddc5de86c 100644
--- a/templates/repo/search.tmpl
+++ b/templates/repo/search.tmpl
@@ -14,7 +14,7 @@
</div>
{{if .Keyword}}
<h3>
- {{.i18n.Tr "repo.search.results" .Keyword .RepoLink .RepoName | Str2html}}
+ {{.i18n.Tr "repo.search.results" (.Keyword|Escape) .RepoLink .RepoName | Str2html }}
</h3>
<div class="repository search">
{{range $result := .SearchResults}}