Fix paths returned by \OC\Files\Storage\Shared hooks (#25519)

Fixes #23620
This commit is contained in:
Vincent Petry 2016-08-13 17:08:04 +02:00 committed by Lukas Reschke
parent d2d1508276
commit c158acc6ea
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 2 additions and 2 deletions

View File

@ -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,
);