]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Update bundle
[rails.git] / app / controllers / site_controller.rb
index 3a69eed120e1299ed90287c2f15ae96cb0515823..52fea613366684808f424ff04b094353ef7e996d 100644 (file)
@@ -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