Skip to content
Snippets Groups Projects
Commit 4d32e354 authored by Joas Schilling's avatar Joas Schilling
Browse files

Ensure that filename is prefixed with a slash

parent 564bf23c
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,7 @@ class Updater {
$uid = \OC\Files\Filesystem::getOwner($filename);
\OC\Files\Filesystem::initMountPoints($uid);
$filename = (strpos($filename, '/') !== 0) ? '/' . $filename : $filename;
if ($uid != \OCP\User::getUser()) {
$info = \OC\Files\Filesystem::getFileInfo($filename);
if (!$info) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment