X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ac6a872a48c2663524fb2884724524f11ab671c9..bf9dd8f350ca1b54afb79dda79506d980ccb5738:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 3a69eed12..52fea6133 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -75,6 +75,10 @@ class SiteController < ApplicationController :plugin_types => %w[application/x-shockwave-flash], :script_src => %w['unsafe-inline'] ) + elsif %w[id].include?(editor) + append_content_security_policy_directives( + :frame_src => %w[blob:] + ) end begin @@ -112,7 +116,9 @@ class SiteController < ApplicationController def help; end - def about; end + def about + @locale = params[:about_locale] || I18n.locale + end def export; end