Ensure that filename is prefixed with a slash

This commit is contained in:
Joas Schilling 2014-08-14 16:48:30 +02:00
parent 564bf23c1b
commit 4d32e3548b
1 changed files with 1 additions and 0 deletions

View File

@ -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) {