removed 'toremove'

This commit is contained in:
xdrm-brackets 2018-03-03 16:47:57 +01:00
parent f046741a89
commit d033df5ee7
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ class casController{
/* (2) Check ticket (validate)
---------------------------------------------------------*/
/* (1) Build useful variables */
$service = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/api/v/1.0/cas';
var_dump($service);
$service = ($_SERVER['SERVER_NAME'] == 'ptut.com' ) ? 'http' : 'https';
$service .= '://'.$_SERVER['HTTP_HOST'].'/api/v/1.0/cas';
$ticket = urlencode($_GET['ticket']);
$validate_url = "https://sso.univ-pau.fr/cas/serviceValidate?ticket=$ticket&service=$service";