mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-04 19:08:45 +00:00
HTML Escape search queries
This commit is contained in:
parent
051908cfb7
commit
1ae3c33b7d
3 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
<form class="search-form" action="/search" method="GET">
|
||||
<span class="post-form-field>
|
||||
<label for="query"> Query </label>
|
||||
<input id="query" name="q" value="{{.Q}}">
|
||||
<input id="query" name="q" value="{{.Q | HTMLEscape}}">
|
||||
</span>
|
||||
<span class="post-form-field>
|
||||
<label for="type"> Type </label>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<form class="search-form" action="/usersearch/{{.User.ID}}" method="GET">
|
||||
<span class="post-form-field>
|
||||
<label for="query"> Query </label>
|
||||
<input id="query" name="q" value="{{.Q}}">
|
||||
<input id="query" name="q" value="{{.Q | HTMLEscape}}">
|
||||
</span>
|
||||
<button type="submit"> Search </button>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue