Merged r15813 (#23587).

git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15878 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-10-02 10:23:06 +00:00
parent 31825ff1ee
commit 9fa491f9f0
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