Commit db61b81f authored by Tim Steiner's avatar Tim Steiner
Browse files

Remove some old code that was triggering needless warnings.

parent 942c6bab
......@@ -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;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment