|
|
|
@ -58,8 +58,6 @@ class Local extends \OC\Files\Storage\Common {
|
|
|
|
|
|
|
|
|
|
|
|
protected $dataDirLength;
|
|
|
|
protected $dataDirLength;
|
|
|
|
|
|
|
|
|
|
|
|
protected $allowSymlinks = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected $realDataDir;
|
|
|
|
protected $realDataDir;
|
|
|
|
|
|
|
|
|
|
|
|
public function __construct($arguments) {
|
|
|
|
public function __construct($arguments) {
|
|
|
|
@ -441,7 +439,8 @@ class Local extends \OC\Files\Storage\Common {
|
|
|
|
|
|
|
|
|
|
|
|
$fullPath = $this->datadir . $path;
|
|
|
|
$fullPath = $this->datadir . $path;
|
|
|
|
$currentPath = $path;
|
|
|
|
$currentPath = $path;
|
|
|
|
if ($this->allowSymlinks || $currentPath === '') {
|
|
|
|
$allowSymlinks = \OC::$server->getConfig()->getSystemValue('localstorage.allowsymlinks', false);
|
|
|
|
|
|
|
|
if ($allowSymlinks || $currentPath === '') {
|
|
|
|
return $fullPath;
|
|
|
|
return $fullPath;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$pathToResolve = $fullPath;
|
|
|
|
$pathToResolve = $fullPath;
|
|
|
|
|