From e629008c957180aae58fd445fa9a7b73ea29b203 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 Signed-off-by: Martin Renvoize --- 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