Ensure that filename is prefixed with a slash
This commit is contained in:
parent
564bf23c1b
commit
4d32e3548b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue