mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Revert "[stable10] Only use realpath for real directories (#26060)"
This commit is contained in:
parent
ffaa2512f3
commit
85d7b90b24
1 changed files with 1 additions and 6 deletions
|
|
@ -54,12 +54,7 @@ class Local extends \OC\Files\Storage\Common {
|
|||
throw new \InvalidArgumentException('No data directory set for local storage');
|
||||
}
|
||||
$this->datadir = $arguments['datadir'];
|
||||
// some crazy code uses a local storage on root...
|
||||
if ($this->datadir === '/') {
|
||||
$this->realDataDir = $this->datadir;
|
||||
} else {
|
||||
$this->realDataDir = rtrim(realpath($this->datadir), '/') . '/';
|
||||
}
|
||||
$this->realDataDir = rtrim(realpath($this->datadir), '/') . '/';
|
||||
if (substr($this->datadir, -1) !== '/') {
|
||||
$this->datadir .= '/';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue