Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
cut off pydi uri for service url when authenticate via CAS
  • Loading branch information
c12simple committed Nov 21, 2014
1 parent f8d1fd0 commit c3728bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/authfront.cas/CAS/Client.php
Expand Up @@ -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;
Expand Down

0 comments on commit c3728bf

Please sign in to comment.