mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: Properly escape user content within <noscript>
This commit is contained in:
committed by
Isaac Janzen
parent
c3b8216869
commit
9b50de4569
@@ -99,15 +99,17 @@
|
||||
|
||||
<%= render_google_tag_manager_body_code %>
|
||||
<noscript data-path="<%= request.env['PATH_INFO'] %>">
|
||||
<%= render partial: "layouts/noscript_header" %>
|
||||
<%= escape_noscript do %>
|
||||
<%= render partial: "layouts/noscript_header" %>
|
||||
|
||||
<div id="main-outlet" class="wrap" role="main">
|
||||
<!-- preload-content: -->
|
||||
<%= yield %>
|
||||
<!-- :preload-content -->
|
||||
</div>
|
||||
<div id="main-outlet" class="wrap" role="main">
|
||||
<!-- preload-content: -->
|
||||
<%= yield %>
|
||||
<!-- :preload-content -->
|
||||
</div>
|
||||
|
||||
<%= render partial: "layouts/noscript_footer" %>
|
||||
<%= render partial: "layouts/noscript_footer" %>
|
||||
<% end %>
|
||||
</noscript>
|
||||
|
||||
<%- unless customization_disabled? %>
|
||||
|
||||
Reference in New Issue
Block a user