X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ac6a872a48c2663524fb2884724524f11ab671c9..77bece20ff81805e97e73d87e8dadabf1db13267:/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