Bugzilla – Attachment 191568 Details for
Bug 39055
Unauthenticated are not redirected properly in reports module after login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39055: wip
1c381a0.patch (text/plain), 2.22 KB, created by
Jonathan Druart
on 2026-01-16 14:31:50 UTC
(
hide
)
Description:
Bug 39055: wip
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-16 14:31:50 UTC
Size:
2.22 KB
patch
obsolete
>From 1c381a0fc5aaf7bbfc8d31a9336d8a1664a8d3b1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 16 Jan 2026 15:29:52 +0100 >Subject: [PATCH] Bug 39055: wip > >--- > C4/Auth.pm | 11 +++++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 1 + > 2 files changed, 12 insertions(+) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index c376d0e35c2..529dfd4582a 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -215,6 +215,16 @@ sub get_template_and_user { > ); > } > >+ if ( my $query_string = $in->{query}->param('query_string') ) { >+ my %params = map { >+ my ($k, $v) = split /=/, $_, 2; >+ $k => $v; >+ } split /;/, $query_string; >+ while ( my ($attr, $value) = each %params ) { >+ $in->{query}->param($attr, $value); >+ } >+ } >+ > my $session = get_session($sessionID); > > # If we enforce GDPR and the user did not consent, redirect >@@ -1457,6 +1467,7 @@ sub checkauth { > $template->param( > login => 1, > INPUTS => \@inputs, >+ query_string => $query->query_string(), > script_name => get_script_name(), > casAuthentication => C4::Context->preference("casAuthentication"), > shibbolethAuthentication => $shib, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >index 4a0a2109049..8020eb9b197 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >@@ -169,6 +169,7 @@ > [% NEXT IF INPUT.name == "branch" %] > <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" /> > [% END %] >+ <input type="hidden" name="query_string" value="[% query_string | html %]" /> > <p > ><label for="userid">Username:</label> > <input type="text" name="login_userid" id="userid" class="input focus" value="[% userid | html %]" size="20" tabindex="1" autocomplete="off" /> >-- >2.43.0 >
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 39055
:
191568
|
191617
|
192121
|
192308
|
192350
|
192351
|
192352
|
192353
|
192354