Skip to content

Commit

Permalink
Sanitized search-related freemarker variables
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg authored and chenejac committed Mar 21, 2024
1 parent 602f706 commit 80a374f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/src/main/webapp/themes/nemo/templates/search.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<form id="search-form" action="${urls.search}" name="search" role="search" accept-charset="UTF-8" method="GET">
<div id="search-field">
<input type="text" name="querytext" id="filter_input_querytext" class="search-vivo" value="${querytext!}" autocapitalize="off" />
<input type="text" name="querytext" id="filter_input_querytext" class="search-vivo" value="${querytext!?html}" autocapitalize="off" />
<input type="submit" value="${i18n().search_button}" class="search">
</div>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<form id="search-form" action="${urls.search}" name="search" role="search" accept-charset="UTF-8" method="GET">
<div id="search-field">
<input type="text" id="filter_input_querytext" name="querytext" class="search-vivo" value="${querytext!}" autocapitalize="off" />
<input type="text" id="filter_input_querytext" name="querytext" class="search-vivo" value="${querytext!?html}" autocapitalize="off" />
<input type="submit" value="${i18n().search_button}" class="search">
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/main/webapp/themes/wilma/templates/search.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<form id="search-form" action="${urls.search}" name="search" role="search" accept-charset="UTF-8" method="GET">
<div id="search-field">
<input type="text" id="filter_input_querytext" name="querytext" class="search-vivo" value="${querytext!}" autocapitalize="off" />
<input type="text" id="filter_input_querytext" name="querytext" class="search-vivo" value="${querytext!?html}" autocapitalize="off" />
<input type="submit" value="${i18n().search_button}" class="search">
</div>
</form>
Expand Down

0 comments on commit 80a374f

Please sign in to comment.