diff --git a/library/Unl/Cas.php b/library/Unl/Cas.php index 71354c0a478bd8884a8345703f02cee053df6808..4b62ffab3a1d981d8219ae27e78cfcb8b9beccda 100644 --- a/library/Unl/Cas.php +++ b/library/Unl/Cas.php @@ -85,30 +85,12 @@ class Unl_Cas /** * Set the service url - * - * This function appends all get variables but strips out the ticket - * The ticket parameter is appended by the CAS server, if it is left - * in the service URL will be different from the one sent to the CAS - * server. Because of this, authentication will fail. * * @param string $serviceUrl */ public function setServiceUrl($serviceUrl) { - $params = array(); - $paramString = ""; - if (sizeof($_GET) > 0) { - foreach ($_GET as $key => $value) { - if ($key != "ticket") { - $params[] = $key . ($value != "" ? "=" . $value : ""); - } - } - if(sizeof($params) > 0){ - $paramString = "?" . implode("&", $params); - } - } - $paramString = ''; - $this->_serviceUrl = $serviceUrl . $paramString; + $this->_serviceUrl = $serviceUrl; } /**