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

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 31, 2014
2 parents 3102f10 + d3930d0 commit b99b517
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
18 changes: 4 additions & 14 deletions core/src/plugins/authfront.cas/CAS/Client.php
Expand Up @@ -1938,23 +1938,13 @@ private function getCallbackURL()
$final_uri .= $this->getServerUrl();
$request_uri = $_SERVER['REQUEST_URI'];
$request_uri = preg_replace('/\?.*$/','',$request_uri);

/*
* modify for pydio
*/
$arr_uri = explode('/', $request_uri);
if(count($arr_uri) >= 3){
array_pop($arr_uri);
$request_uri = implode('/', $arr_uri).'/';
}else if(count($arr_uri) == 2){
if(!empty($arr_uri[1])){
$request_uri = '/'.$arr_uri[1].'/';
}
else{
$request_uri = '/';
}
}else{
$request_uri = '/';
}
//$str_pattern = 'index|plugins|dashboard|settings|welcome|ws-(.*)';
//$request_uri = preg_replace($str_pattern,'',$request_uri);


$final_uri .= $request_uri;
/**************************************/
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/authfront.cas/manifest.xml
Expand Up @@ -52,7 +52,7 @@
<external_file filename="plugins/core.auth/standard_auth_actions.xml" include="actions/*" exclude="actions/action[@name='logoutCAS']"/>
<actions>
<action name="logoutCAS" expireDefault="true">
<gui text="164" title="169" src="" accessKey="" hasAccessKey="false">
<gui text="164" title="169" src="decrypted.png" accessKey="" iconClass="icon-signout" hasAccessKey="false">
<context selection="false" dir="" recycle="false" contextMenu="false" infoPanel="false" actionBarGroup="user" ajxpWidgets="UserWidget::logging_string"></context>
</gui>
<rightsContext noUser="false" userLogged="only" guestLogged="show" read="false" write="false" adminOnly=""></rightsContext>
Expand Down

0 comments on commit b99b517

Please sign in to comment.