Bugzilla – Attachment 173364 Details for
Bug 38258
Connecting without a proper CGI cookie can disconnect all sessions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38258: Force scalar context for cookie calls (part 4)
Bug-38258-Force-scalar-context-for-cookie-calls-pa.patch (text/plain), 1.01 KB, created by
Baptiste Wojtkowski (bwoj)
on 2024-10-25 14:00:49 UTC
(
hide
)
Description:
Bug 38258: Force scalar context for cookie calls (part 4)
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2024-10-25 14:00:49 UTC
Size:
1.01 KB
patch
obsolete
>From 4b3d2c53083aa3c1fa6885306e142f1551a63b57 Mon Sep 17 00:00:00 2001 >From: Baptiste <baptiste.wojtkowski@biblibre.com> >Date: Fri, 25 Oct 2024 15:50:28 +0200 >Subject: [PATCH] Bug 38258: Force scalar context for cookie calls (part 4) > >Correct the last call for cookies >--- > authorities/merge_ajax.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/authorities/merge_ajax.pl b/authorities/merge_ajax.pl >index b4e489be5e1..c3bd0b2dfc8 100755 >--- a/authorities/merge_ajax.pl >+++ b/authorities/merge_ajax.pl >@@ -11,7 +11,8 @@ use C4::Auth qw( check_cookie_auth ); > use C4::AuthoritiesMarc qw( GetTagsLabels ); > > my %cookies = CGI::Cookie->fetch; >-my ($auth_status) = check_cookie_auth($cookies{'CGISESSID'}->value, { editcatalogue => 'edit_catalogue' }); >+my $session_cookie = $cookies{'CGISESSID'}->value; >+my ($auth_status) = check_cookie_auth( $session_cookie, { editcatalogue => 'edit_catalogue' } ); > my $reply = CGI->new; > if ($auth_status ne "ok") { > print $reply->header(-type => 'text/html'); >-- >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 38258
:
173361
|
173362
|
173363
| 173364