From d9659d5e173636b9026f3ec23c6f0d5d25c25b1b Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Mon, 14 Oct 2013 11:24:29 +0200 Subject: [PATCH] BZ11048: Fix logout redirection for CAS authentication The logout redirection function after a CAS authentication was misused. This patch fixes it, and allows the CAS server to redirect the user back to the opac after logout. --- C4/Auth_with_cas.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth_with_cas.pm b/C4/Auth_with_cas.pm index 46cb1ec..0a48182 100644 --- a/C4/Auth_with_cas.pm +++ b/C4/Auth_with_cas.pm @@ -71,7 +71,7 @@ sub logout_cas { $uri .= "?cas=" . $casparam if (defined $casparam); $casparam = $defaultcasserver if (not defined $casparam); my $cas = Authen::CAS::Client->new($casservers->{$casparam}); - print $query->redirect( $cas->logout_url($uri)); + print $query->redirect( $cas->logout_url(url => $uri)); } # Login to CAS -- 1.7.10.4