Bugzilla – Attachment 153095 Details for
Bug 23336
Add an API endpoint for checking an item out to a patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23336: Compare strings with eq instead of ==
Bug-23336-Compare-strings-with-eq-instead-of-.patch (text/plain), 781 bytes, created by
Jonathan Druart
on 2023-07-06 13:42:37 UTC
(
hide
)
Description:
Bug 23336: Compare strings with eq instead of ==
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-06 13:42:37 UTC
Size:
781 bytes
patch
obsolete
>From 6699be67052835d476b6023c0733e95633a9b438 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 6 Jul 2023 15:41:15 +0200 >Subject: [PATCH] Bug 23336: Compare strings with eq instead of == > >And don't ignore warnings next time ;) >--- > Koha/Token.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Token.pm b/Koha/Token.pm >index 62b5a6c7392..b7cdd3ad96e 100644 >--- a/Koha/Token.pm >+++ b/Koha/Token.pm >@@ -295,7 +295,7 @@ sub _chk_jwt { > > my $claims = Mojo::JWT->new(secret => $params->{secret})->decode($params->{token}); > >- return 1 if exists $claims->{id} && $claims->{id} == $params->{id}; >+ return 1 if exists $claims->{id} && $claims->{id} eq $params->{id}; > } > > sub _decode_jwt { >-- >2.25.1
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 23336
:
91632
|
91633
|
91634
|
150947
|
150948
|
150949
|
150954
|
150955
|
150956
|
150960
|
150961
|
150962
|
151253
|
151318
|
151319
|
151320
|
151321
|
151322
|
151353
|
151354
|
151355
|
151356
|
151357
|
152712
|
152713
|
152714
|
152715
|
152716
|
152938
|
152999
|
153000
|
153095
|
153096