@@ -1,5 +1,5 | |||
|
1 | 1 | <h2><%= l :label_password_required %></h2> |
|
2 | <%= form_tag({}, class: 'tabular', id: 'sudo-form') do %> | |
|
2 | <%= form_tag({}, method: :post, class: 'tabular', id: 'sudo-form') do %> | |
|
3 | 3 | |
|
4 | 4 | <%= hidden_field_tag '_method', request.request_method %> |
|
5 | 5 | <%= hash_to_hidden_fields @sudo_form.original_fields %> |
@@ -90,7 +90,7 module Redmine | |||
|
90 | 90 | return true if SudoMode.active? |
|
91 | 91 | |
|
92 | 92 | if param_names.blank? |
|
93 | param_names = params.keys - %w(id action controller sudo_password) | |
|
93 | param_names = params.keys - %w(id action controller sudo_password _method authenticity_token utf8) | |
|
94 | 94 | end |
|
95 | 95 | |
|
96 | 96 | process_sudo_form |
General Comments 0
You need to be logged in to leave comments.
Login now