diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-08-13 18:08:04 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-08-29 16:08:45 +0300 |
commit | c158acc6ea432b561ce48c3ed6cd01bc2d6d5bb3 (patch) | |
tree | 33286e6b3b6a1ad13013da6a2324467186008a38 | |
parent | d2d15082764badd43ed2aa8d44253ff94b7d1b18 (diff) |
Fix paths returned by \OC\Files\Storage\Shared hooks (#25519)
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 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, ); |