From c3728bf42e5995d429a8b96f7bae0299e16cdeb4 Mon Sep 17 00:00:00 2001 From: c12simple Date: Fri, 21 Nov 2014 13:35:37 +0100 Subject: [PATCH] cut off pydi uri for service url when authenticate via CAS --- core/src/plugins/authfront.cas/CAS/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/plugins/authfront.cas/CAS/Client.php b/core/src/plugins/authfront.cas/CAS/Client.php index 781bd39c75..95018754e7 100755 --- a/core/src/plugins/authfront.cas/CAS/Client.php +++ b/core/src/plugins/authfront.cas/CAS/Client.php @@ -3498,8 +3498,8 @@ public function getURL() //$final_uri .= $request_uri[0]; $new_request_uri = $request_uri[0]; - $str_pattern = '/index|plugins|dashboard|settings|welcome|ws-(.*)$/'; - $new_request_uri = preg_replace($str_pattern,'',$new_request_uri); + $str_pattern = '/index(.*)$|plugins(.*)$|dashboard(.*)$|settings(.*)$|welcome(.*)$|ws-(.*)$/'; + $new_request_uri = preg_replace($str_pattern,'welcome',$new_request_uri); if(!(strcmp($new_request_uri, "/") === 0)) $new_request_uri = rtrim($new_request_uri, "/"); $final_uri .= $new_request_uri;