Escape search query (#3486)

Signed-off-by: Jonas Franz <info@jonasfranz.de>
This commit is contained in:
Jonas Franz authored and Lauris BH committed 2018-02-11 15:42:28 +02:00
1 parent 6eaeb01ecf
commit 2cb4649acf
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -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}}