diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-08-13 18:08:31 +0300 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-08-13 18:08:31 +0300 |
commit | 94ec7f5f8d0cbfa6f4f3799c7f92e04c312a8032 (patch) | |
tree | dacb80eb9eff4edfc45c7702450c599e5ace0809 | |
parent | 6d2b7de290d63ddc56801665314d2a1cd5592be6 (diff) |
Fix paths returned by \OC\Files\Storage\Shared hooks (#25520)
Fixes #23620
-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 dbf2fe05480..344a9755bc4 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -295,7 +295,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); @@ -434,7 +434,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { } } $info = array( - 'target' => $this->getMountPoint() . $path, + 'target' => $this->getMountPoint() . '/' . $path, 'source' => $source, 'mode' => $mode, ); |