Skip to content

Commit

Permalink
Merge pull request #13957 from madhuracj/xss
Browse files Browse the repository at this point in the history
Escape search string and table names in database search results page
  • Loading branch information
madhuracj committed Feb 7, 2018
2 parents 4fd849e + e25b91a commit fab0a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/database/search/results.twig
Expand Up @@ -3,7 +3,7 @@
{{ 'Search results for "<em>%s</em>" %s:'|format(
criteria_search_string,
search_type_description
)|raw }}
) }}
</caption>
{% for row in rows %}
<tr class="noclick">
Expand All @@ -15,7 +15,7 @@
%1$s matches in <strong>%2$s</strong>
{% endtrans %}
{% endset %}
{{ result_message|format(row.result_count, row.table)|raw }}
{{ result_message|format(row.result_count, row.table) }}
</td>
{% if row.result_count > 0 %}
{% set url_params = {
Expand Down

0 comments on commit fab0a17

Please sign in to comment.