Bug 35106: CSRF fix
The removal of 'cud-' from op needs to happen sooner because ill-requests.tt expects 'edit_action' op, not 'cud-edit_action'. Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
c304eabc19
commit
631a80aaee
|
|
@ -216,6 +216,7 @@ if ( $backends_available ) {
|
|||
handle_commit_maybe($backend_result, $request);
|
||||
|
||||
} elsif ( $op eq 'cud-edit_action' ) {
|
||||
$op =~ s/^cud-//;
|
||||
# Handle edits to the Illrequest object.
|
||||
# (not the Illrequestattributes)
|
||||
# We simulate the API for backend requests for uniformity.
|
||||
|
|
@ -225,7 +226,6 @@ if ( $backends_available ) {
|
|||
order_by => { -asc => 'name' }
|
||||
});
|
||||
if ( !$params->{stage} ) {
|
||||
$op =~ s/^cud-//;
|
||||
my $backend_result = {
|
||||
error => 0,
|
||||
status => '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue