summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-14 16:48:30 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-20 11:18:46 +0200
commite311535ae1e5952659ce16d24afe8cf28ebbc034 (patch)
treec424f662e0bb52ee9f2b17a49fc803cf8ac5da8a
parentb1b745c052001810399ddf2aee763a03c98b1ea3 (diff)
downloadnextcloud-server-e311535ae1e5952659ce16d24afe8cf28ebbc034.tar.gz
nextcloud-server-e311535ae1e5952659ce16d24afe8cf28ebbc034.zip
Ensure that filename is prefixed with a slash
-rw-r--r--lib/private/files/cache/updater.php1
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) {