Add param to prevent limitless redirections in SSO for Drupal - refs BT#10145

1.10.x
Yannick Warnier 10 years ago
parent 3b343526a5
commit 28a2a5e9a8
  1. 5
      main/auth/sso/sso.Drupal.class.php

@ -53,8 +53,11 @@ class ssoDrupal
*/
public function logout()
{
// no_redirect means Drupal sent the signal to logout. When redirecting to Drupal, the $_GET['stop'] param is
// set to 1, to allow Drupal to know that this is it, the logout is already done in Chamilo and there's no
// need to do it again
if (empty($_GET['no_redirect'])) {
header('Location: '.$this->deauth_url);
header('Location: '.$this->deauth_url.'&stop=1');
} else {
header('Location: '.$this->protocol.$this->domain);
}

Loading…
Cancel
Save