From db61b81f860aae8d9690f8e5d2c677b476535dd6 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Wed, 4 Sep 2013 16:42:26 -0500 Subject: [PATCH] Remove some old code that was triggering needless warnings. --- library/Unl/Cas.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/library/Unl/Cas.php b/library/Unl/Cas.php index 71354c0..4b62ffa 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; } /** -- GitLab