Fixing ask_master() function if URL contains "?" or not see BT#5137

skala
Julio Montoya 13 years ago
parent 54a48c075b
commit 314957c0cd
  1. 8
      main/auth/sso/sso.class.php

@ -50,7 +50,13 @@ class sso {
* Sends the user to the master URL for a check of active connection
*/
public function ask_master() {
header('Location: '.$this->master_url.'&sso_referer='.urlencode($this->referer).'&sso_target='.urlencode($this->target));
$params = 'sso_referer='.urlencode($this->referer).'&sso_target='.urlencode($this->target);
if (strpos($this->master_url, "?") === false) {
$params = "?$params";
} else {
$params = "&$params";
}
header('Location: '.$this->master_url.$params);
exit;
}
/**

Loading…
Cancel
Save