Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX:BP:11.5] Sanitize frequent and last searches output #3591

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Search/FrequentlySearched.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ul class="list-group list-group-flush collapse show" id="frequendSearches">
<f:for each="{frequentSearches}" as="searchedForInfo">
<li class="list-group-item {searchedForInfo.class}">
<a href="{s:uri.search.startNewSearch(queryString: searchedForInfo.q)}" class="solr-ajaxified">{searchedForInfo.q}</a>
<a href="{s:uri.search.startNewSearch(queryString: searchedForInfo.q)}" class="solr-ajaxified"><f:format.htmlentities>{searchedForInfo.q}</f:format.htmlentities></a>
</li>
</f:for>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Search/LastSearches.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<ul class="list-group collapse show" id="lastSearches">
<f:for each="{lastSearches}" as="searchedFor">
<li class="list-group-item">
<a href="{s:uri.search.startNewSearch(queryString: searchedFor)}" class="solr-ajaxified">{searchedFor}</a>
<a href="{s:uri.search.startNewSearch(queryString: searchedFor)}" class="solr-ajaxified"><f:format.htmlentities>{searchedFor}</f:format.htmlentities></a>
</li>
</f:for>
</ul>
Expand Down