Sfoglia il codice sorgente

Merge pull request #10259 from FortAwesome/search-script-injection

Fix script injection by using _.template escaping
Dave Gandy 8 anni fa
parent
commit
49100c7c3a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/icons.html

+ 1 - 1
src/icons.html

@@ -57,7 +57,7 @@ relative_path: ../
     {% include icons/medical.html %}
   </div>
   <script type="text/template" id="results-template">
-    <h2 class="page-header">Search for '<span class="text-color-default"><%= content.query %></span>'</h2>
+    <h2 class="page-header">Search for '<span class="text-color-default"><%- content.query %></span>'</h2>
     <% if (content.nbHits > 0) { %>
       <div class="row fontawesome-icon-list">
         <%= results %>