Skip to content
Snippets Groups Projects
Commit db61b81f authored by Tim Steiner's avatar Tim Steiner
Browse files

Remove some old code that was triggering needless warnings.

parent 942c6bab
Branches
Tags
No related merge requests found
......@@ -86,29 +86,11 @@ 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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment