1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-11 01:51:32 +00:00

Sudo-Mode refinements (#23587).

Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@15813 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-09-03 07:37:16 +00:00
parent fa2f598150
commit d744749d5e
2 changed files with 2 additions and 2 deletions

View 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 %>

View 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