mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: fix reflected XSS with safe_mode param
(only applies to beta and master)
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
Discourse.set('assetVersion','<%= Discourse.assets_digest %>');
|
||||
Discourse.Session.currentProp("disableCustomCSS", <%= loading_admin? %>);
|
||||
<%- if params["safe_mode"] %>
|
||||
Discourse.Session.currentProp("safe_mode", <%= params["safe_mode"].inspect.html_safe %>);
|
||||
Discourse.Session.currentProp("safe_mode", <%= normalized_safe_mode.inspect.html_safe %>);
|
||||
<%- end %>
|
||||
Discourse.HighlightJSPath = <%= HighlightJs.path.inspect.html_safe %>;
|
||||
<%- if SiteSetting.enable_s3_uploads %>
|
||||
|
||||
Reference in New Issue
Block a user