Bugzilla – Attachment 124779 Details for
Bug 28785
Code in C4::Auth::checkauth is copy pasted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28785: Don't send SessionRestrictionByIP to template
Bug-28785-Dont-send-SessionRestrictionByIP-to-temp.patch (text/plain), 1.79 KB, created by
Martin Renvoize
on 2021-09-10 15:47:57 UTC
(
hide
)
Description:
Bug 28785: Don't send SessionRestrictionByIP to template
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2021-09-10 15:47:57 UTC
Size:
1.79 KB
patch
obsolete
>From e629008c957180aae58fd445fa9a7b73ea29b203 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 30 Jul 2021 14:19:02 +0200 >Subject: [PATCH] Bug 28785: Don't send SessionRestrictionByIP to template > >It's not used. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Auth.pm | 1 - > opac/opac-tags.pl | 2 +- > 2 files changed, 1 insertion(+), 2 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 8712ff613c..02ca07a992 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -1288,7 +1288,6 @@ sub checkauth { > casAuthentication => C4::Context->preference("casAuthentication"), > shibbolethAuthentication => $shib, > suggestion => C4::Context->preference("suggestion"), >- SessionRestrictionByIP => C4::Context->preference("SessionRestrictionByIP"), > virtualshelves => C4::Context->preference("virtualshelves"), > LibraryName => "" . C4::Context->preference("LibraryName"), > LibraryNameTitle => "" . $LibraryNameTitle, >diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl >index 54567bdc7d..63169e812a 100755 >--- a/opac/opac-tags.pl >+++ b/opac/opac-tags.pl >@@ -69,7 +69,7 @@ sub ajax_auth_cgi { # returns CGI object > my %cookies = CGI::Cookie->fetch; > my $input = CGI->new; > my $sessid = $cookies{'CGISESSID'}->value; >- my ($auth_status) = check_cookie_auth($sessid, $needed_flags); >+ my ($auth_status) = check_cookie_auth($sessid, $needed_flags); > if ($auth_status ne "ok") { > output_with_http_headers $input, undef, > "window.alert('Your CGI session cookie ($sessid) is not current. " . >-- >2.20.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 28785
:
123314
|
123315
|
123316
|
123317
|
123319
|
123320
|
123321
|
123322
|
123323
|
123392
|
123393
|
123394
|
123395
|
124776
|
124777
|
124778
| 124779