Skip to content

Commit

Permalink
Fix paths returned by \OC\Files\Storage\Shared hooks (#25519)
Browse files Browse the repository at this point in the history
Fixes #23620
  • Loading branch information
Vincent Petry authored and DeepDiver1975 committed Aug 13, 2016
1 parent f2f86e8 commit fd1f7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_sharing/lib/sharedstorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public function file_get_contents($path) {
$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);
Expand Down Expand Up @@ -460,7 +460,7 @@ public function fopen($path, $mode) {
}
}
$info = array(
'target' => $this->getMountPoint() . $path,
'target' => $this->getMountPoint() . '/' . $path,
'source' => $source,
'mode' => $mode,
);
Expand Down

0 comments on commit fd1f7cc

Please sign in to comment.