Commit d6c46194937bbe6c88d73633f3d59ac08b6ad54e

Authored by Andrey Karpikov
1 parent a4e6fa5e

check scrf param replace

No preview for this file type
... ... @@ -99,10 +99,8 @@ module Kanjai
99 99
100 100 session[:scheme] = 'http://'
101 101
102   - unless current_admin_user
103   - layer.gsub!('<meta name="csrf-param" content="###CSRF_PARAM###"/>', '')
104   - layer.gsub!('<meta name="csrf-token" content="###CSRF_TOKEN###"/>', '')
105   - end
  102 + layer.gsub!('<meta name="csrf-param" content="###CSRF_PARAM###"/>', '')
  103 + layer.gsub!('<meta name="csrf-token" content="###CSRF_TOKEN###"/>', '')
106 104
107 105 domain.page_langs.each do |item|
108 106 if item.code.to_s != I18n.locale.to_s
... ...
1 1 module Kanjai
2   - VERSION = "0.0.373"
  2 + VERSION = "0.0.374"
3 3 end
... ...