From 73a496faae4bc4fbfd6deab8504c394f05ce0a94 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 3 Mar 2018 16:32:10 +0100 Subject: [PATCH] [module.cas] POST fixed 'service' processed from $_SERVER variables --- build/api/module/casController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/api/module/casController.php b/build/api/module/casController.php index 7ce21fa..5066540 100644 --- a/build/api/module/casController.php +++ b/build/api/module/casController.php @@ -73,7 +73,7 @@ class casController{ /* (2) Check ticket (validate) ---------------------------------------------------------*/ /* (1) Build useful variables */ - $service = 'http://ptut.com:8080/api/v/1.0/cas'; + $service = $_SERVER['REQUEST_SCHEME'].'://'.$_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";