Skip to content

Commit

Permalink
Correctly display searchpattern in search result page.
Browse files Browse the repository at this point in the history
The `searchPattern` is already "diples encoded".
So we can simply using it without protecting us from script injection.

Fix #723
  • Loading branch information
mgautierfr committed Mar 9, 2022
1 parent 7058d65 commit 8b50187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/templates/search_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@
</b> of <b>
{{count}}
</b> for <b>
{{searchPattern}}
"{{{searchPattern}}}"
</b>
{{/hasResults}}
{{^hasResults}}
No results were found for <b>{{searchPattern}}</b>
No results were found for <b>"{{{searchPattern}}}"</b>
{{/hasResults}}
</div>

Expand Down

0 comments on commit 8b50187

Please sign in to comment.