diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-14 16:48:30 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-14 16:48:30 +0200 |
commit | 4d32e3548b948361587cba3ebf9af01e0c8152ee (patch) | |
tree | 6f3ef7c01e4fefb7444cd9f6f9fb0c4859eaff76 /lib | |
parent | 564bf23c1b37e3de1cbcd507687bcc8873ec1982 (diff) | |
download | nextcloud-server-4d32e3548b948361587cba3ebf9af01e0c8152ee.tar.gz nextcloud-server-4d32e3548b948361587cba3ebf9af01e0c8152ee.zip |
Ensure that filename is prefixed with a slash
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/updater.php | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |