@@ -, +, @@ not needed --- C4/Auth.pm | 2 ++ C4/Auth_with_cas.pm | 1 + opac/opac-user.pl | 6 ++++-- 3 files changed, 7 insertions(+), 2 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -23,6 +23,8 @@ use Carp qw( croak ); use Digest::MD5 qw( md5_base64 ); use CGI::Session; +use URI; +use URI::QueryParam; use C4::Context; use C4::Templates; # to get the template --- a/C4/Auth_with_cas.pm +++ a/C4/Auth_with_cas.pm @@ -25,6 +25,7 @@ use Koha::AuthUtils qw( get_script_name ); use Authen::CAS::Client; use CGI qw ( -utf8 ); use YAML::XS; +use URI::Escape; use Koha::Logger; --- a/opac/opac-user.pl +++ a/opac/opac-user.pl @@ -57,8 +57,10 @@ my $query = CGI->new; # CAS single logout handling # Will print header and exit -require C4::Auth_with_cas; -C4::Context->preference('casAuthentication') and C4::Auth_with_cas::logout_if_required($query); +if ( C4::Context->preference('casAuthentication') ) { + require C4::Auth_with_cas; + C4::Auth_with_cas::logout_if_required($query); +} my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { --