Skip to content

Commit

Permalink
Don't mark search terms as safe values.
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Oct 31, 2023
1 parent 114c4eb commit a8e241e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion open_search/templates/open_search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="col-12">
<div class="row">
<div class="search-2 input-group mb-3">
<input id="search-filter" type="text" class="form-control input-text" placeholder="Search ...." value="{{ searchTerm|safe }}" aria-describedby="basic-addon2">
<input id="search-filter" type="text" class="form-control input-text" placeholder="Search ...." value="{{ searchTerm }}" aria-describedby="basic-addon2">
<div class="input-group-append">
<button class="btn btn-outline-warning btn-lg search-btn" type="button">
<i class="fa fa-search"></i>
Expand Down
4 changes: 2 additions & 2 deletions search/templates/search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<div class="input-group mb-3">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
<span id="search_concept" data-type="{{ searchType|safe }}">Search by filename</span>
<span id="search_concept" data-type="{{ searchType }}">Search by filename</span>
</button>
<ul id="search-panel" class="dropdown-menu">
<li><a class="dropdown-item" data-type="filename">Search by filename</a></li>
Expand All @@ -28,7 +28,7 @@
<li><a class="dropdown-item" data-type="status">Search by status</a></li>
<li><a class="dropdown-item" data-type="revision">Search revision by name</a></li>
</ul>
<input type="text" class="form-control search-term" id="search-filter" placeholder="Search term..." value="{{ searchTerm|safe }}" maxlength="255">
<input type="text" class="form-control search-term" id="search-filter" placeholder="Search term..." value="{{ searchTerm }}" maxlength="255">
<button type="button" class="btn btn-outline-secondary search-term" data-items-per-page="25"><i class="fa-solid fa-search" aria-hidden="true"></i></button>

<select name="status" class="form-control search-status hide">
Expand Down

0 comments on commit a8e241e

Please sign in to comment.