]> source.dussan.org Git - redmine.git/commitdiff
Sudo-Mode refinements (#23587).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Sep 2016 07:37:16 +0000 (07:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Sep 2016 07:37:16 +0000 (07:37 +0000)
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@15813 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/sudo_mode/new.html.erb
lib/redmine/sudo_mode.rb

index dee97162f84cb1255945beec40878f7f74e2fe0d..323a4556c8f81ef93ae5ddb911951489895d8d68 100644 (file)
@@ -1,5 +1,5 @@
 <h2><%= l :label_password_required %></h2>
-<%= form_tag({}, class: 'tabular', id: 'sudo-form') do %>
+<%= form_tag({}, method: :post, class: 'tabular', id: 'sudo-form') do %>
 
   <%= hidden_field_tag '_method', request.request_method %>
   <%= hash_to_hidden_fields @sudo_form.original_fields %>
index d4f26608a42da8fb4802170e9bb373b36ac1d5f6..c85310091829bceaa90dd2b115c9ba812524950e 100644 (file)
@@ -90,7 +90,7 @@ module Redmine
         return true if SudoMode.active?
 
         if param_names.blank?
-          param_names = params.keys - %w(id action controller sudo_password)
+          param_names = params.keys - %w(id action controller sudo_password _method authenticity_token utf8)
         end
 
         process_sudo_form