Escape search query (Backport 1.4) (#3488)
* Escape search query
Signed-off-by: Jonas Franz <info@jonasfranz.de>
(cherry picked from commit 2970889)
* Reordered imports
Signed-off-by: Jonas Franz <info@jonasfranz.de>
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user