From 99d4fae2701ebf1372919dcbf718e8aad2af0179 Mon Sep 17 00:00:00 2001 From: NadirRoGue Date: Thu, 21 Apr 2016 17:16:49 +0200 Subject: [PATCH] [Patch] Fixing project spaces navigation --- lib/private/files/objectstore/eosproxy.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/private/files/objectstore/eosproxy.php b/lib/private/files/objectstore/eosproxy.php index e5df9cbf070c..519f26e52a42 100644 --- a/lib/private/files/objectstore/eosproxy.php +++ b/lib/private/files/objectstore/eosproxy.php @@ -35,7 +35,7 @@ public static function toEos($ocPath, $storageId) {//ocPath like files/abc.txt o // if the user is a project owner,instead send him to his homedir we send him to the project dir. $project = EosUtil::getProjectNameForUser($username); if($project !== null) { - $project_path= $eos_project_prefix . $project . "/";// . substr($ocPath,5); #KUBA: added / + $project_path= $eos_project_prefix . substr($ocPath,6); #KUBA: added / return $project_path; } @@ -106,9 +106,9 @@ public static function toOc($eosPath) {//eosPath like /eos/dev/user/ or /eos/dev } else if (strpos($eosPath, $eos_project_prefix) === 0) { $len_prefix = strlen($eos_project_prefix); $rel = substr($eosPath, $len_prefix); - $splitted = explode("/", $rel); - $projectname = $splitted[0]; - $ocPath = "files/" . $projectname;//substr($eosPath, strlen($eos_project_prefix . $projectname)); + //$splitted = explode("/", $rel); + //$projectname = $splitted[0]; + $ocPath = "files/" . $rel;//substr($eosPath, strlen($eos_project_prefix . $projectname)); $ocPath = rtrim($ocPath, "/"); return $ocPath; } else {