[Pkg-owncloud-commits] [owncloud] 109/121: Ensure that filename is prefixed with a slash

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 16:44:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit e311535ae1e5952659ce16d24afe8cf28ebbc034
Author: Joas Schilling <nickvergessen at gmx.de>
Date:   Thu Aug 14 16:48:30 2014 +0200

    Ensure that filename is prefixed with a slash
---
 lib/private/files/cache/updater.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index 4b70acb..0e5e07c 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list