Bugzilla – Attachment 169982 Details for
Bug 37553
Fix CSRF handling in koha-svc.pl script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37553: Tidy to make QA tools happy
Bug-37553-Tidy-to-make-QA-tools-happy.patch (text/plain), 1.78 KB, created by
Marcel de Rooy
on 2024-08-02 06:35:19 UTC
(
hide
)
Description:
Bug 37553: Tidy to make QA tools happy
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-08-02 06:35:19 UTC
Size:
1.78 KB
patch
obsolete
>From 5f5415fc98a14f9c11320413f9c48daad670ea3d Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Fri, 2 Aug 2024 02:02:10 +0000 >Subject: [PATCH] Bug 37553: Tidy to make QA tools happy >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > misc/migration_tools/koha-svc.pl | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/misc/migration_tools/koha-svc.pl b/misc/migration_tools/koha-svc.pl >index 929380fa87..396f9e73ea 100755 >--- a/misc/migration_tools/koha-svc.pl >+++ b/misc/migration_tools/koha-svc.pl >@@ -95,15 +95,15 @@ Specified user must have C<editcatalogue> permission. > > sub new { > my $class = shift; >- my $self = {@_}; >+ my $self = {@_}; > bless $self, $class; > >- my $url = $self->{url} || die "no url found"; >- my $user = $self->{user} || die "no user specified"; >+ my $url = $self->{url} || die "no url found"; >+ my $user = $self->{user} || die "no user specified"; > my $password = $self->{password} || die "no password"; > > my $ua = LWP::UserAgent->new(); >- $ua->cookie_jar({}); >+ $ua->cookie_jar( {} ); > > my $get_resp = $ua->get("$url/authentication"); > my $csrf_token = $get_resp->header('CSRF-TOKEN'); >@@ -149,11 +149,11 @@ sub get { > =cut > > sub post { >- my ($self,$biblionumber,$marcxml) = @_; >+ my ( $self, $biblionumber, $marcxml ) = @_; > my $url = $self->{url}; > warn "# post $url/bib/$biblionumber\n" if $self->{debug}; > my $csrf_token = $self->{csrf_token}; >- my $resp = $self->{ua}->post( >+ my $resp = $self->{ua}->post( > "$url/bib/$biblionumber", > 'Content_type' => 'text/xml', > 'Csrf_Token' => $csrf_token, >-- >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 37553
:
169968
|
169974
|
169976
|
169977
|
169978
|
169979
|
169980
|
169981
| 169982