Bugzilla – Attachment 164260 Details for
Bug 35106
ILL - Add patron autocomplete to 'Edit request' Patron ID input
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35106: CSRF fix
Bug-35106-CSRF-fix.patch (text/plain), 1.20 KB, created by
Pedro Amorim
on 2024-04-02 11:31:52 UTC
(
hide
)
Description:
Bug 35106: CSRF fix
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-04-02 11:31:52 UTC
Size:
1.20 KB
patch
obsolete
>From 8aa3306f84164be2a997c73693df9187f91e6dc6 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 2 Apr 2024 11:28:59 +0000 >Subject: [PATCH] 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> >--- > ill/ill-requests.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl >index f191eed330e..23fad393dae 100755 >--- a/ill/ill-requests.pl >+++ b/ill/ill-requests.pl >@@ -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 => '', >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35106
:
157421
|
157422
|
157498
|
157499
|
159934
|
159935
|
164258
|
164259
|
164260
|
165543
|
165544
|
165545