From: Joas Schilling Date: Thu, 14 Aug 2014 14:48:30 +0000 (+0200) Subject: Ensure that filename is prefixed with a slash X-Git-Tag: v8.0.0alpha1~872^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d32e3548b948361587cba3ebf9af01e0c8152ee;p=nextcloud-server.git Ensure that filename is prefixed with a slash --- diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php index 4b70acbbead..0e5e07c587d 100644 --- a/lib/private/files/cache/updater.php +++ b/lib/private/files/cache/updater.php @@ -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) {