Browse Source

use OC_User::getHome in lib/filesystem.php

remotes/origin/stable45
Georg Ehrke 14 years ago
parent
commit
cd5c217c0d
  1. 2
      lib/filesystem.php

2
lib/filesystem.php

@ -350,7 +350,7 @@ class OC_Filesystem{
* @return string
*/
static public function getLocalPath($path) {
$datadir = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser().'/files';
$datadir = OC_User::getHome($user).'/files';
$newpath = $path;
if (strncmp($newpath, $datadir, strlen($datadir)) == 0) {
$newpath = substr($path, strlen($datadir));

Loading…
Cancel
Save