Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-08-13 18:08:31 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-08-13 18:08:31 +0300
commit94ec7f5f8d0cbfa6f4f3799c7f92e04c312a8032 (patch)
treedacb80eb9eff4edfc45c7702450c599e5ace0809
parent6d2b7de290d63ddc56801665314d2a1cd5592be6 (diff)
Fix paths returned by \OC\Files\Storage\Shared hooks (#25520)
Fixes #23620
-rw-r--r--apps/files_sharing/lib/sharedstorage.php4
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,
);