diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-30 09:42:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 09:42:28 +0300 |
commit | 690fc46eff20b5ed732766689e450c544e5c6b8e (patch) | |
tree | ebfbff32c368906fbd1be513159e41cda7ec9c90 | |
parent | 43823645a4d3789dc2def66d4344b1b031c32118 (diff) | |
parent | c158acc6ea432b561ce48c3ed6cd01bc2d6d5bb3 (diff) |
Merge pull request #1153 from nextcloud/stable9-fix-sharedstorage-hooks
Fix paths returned by \OC\Files\Storage\Shared hooks (#25519)
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 0b08f39a60f..64a5cc41bf7 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -322,7 +322,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { $source = $this->getSourcePath($path); if ($source) { $info = array( - 'target' => $this->getMountPoint() . $path, + 'target' => $this->getMountPoint() . '/' . $path, 'source' => $source, ); \OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info); @@ -461,7 +461,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { } } $info = array( - 'target' => $this->getMountPoint() . $path, + 'target' => $this->getMountPoint() . '/' . $path, 'source' => $source, 'mode' => $mode, ); |