diff options
-rw-r--r-- | app/views/sudo_mode/new.html.erb | 2 | ||||
-rw-r--r-- | lib/redmine/sudo_mode.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/sudo_mode/new.html.erb b/app/views/sudo_mode/new.html.erb index dee97162f..323a4556c 100644 --- a/app/views/sudo_mode/new.html.erb +++ b/app/views/sudo_mode/new.html.erb @@ -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 %> diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb index d4f26608a..c85310091 100644 --- a/lib/redmine/sudo_mode.rb +++ b/lib/redmine/sudo_mode.rb @@ -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 |