[Pkg-owncloud-commits] [owncloud] 63/394: normalize filepaths in OC_Files::getFileInfo

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:28 UTC 2013


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

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit b71cc08ce1d7191229bbf5a2a13df154bf68fa64
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed Nov 7 22:51:45 2012 +0100

    normalize filepaths in OC_Files::getFileInfo
---
 lib/files.php |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/files.php b/lib/files.php
index 2b2b8b4..f58f74f 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -42,6 +42,7 @@ class OC_Files {
 	 * - versioned
 	 */
 	public static function getFileInfo($path) {
+		$path = OC_Filesystem::normalizePath($path);
 		if (($path == '/Shared' || substr($path, 0, 8) == '/Shared/') && OC_App::isEnabled('files_sharing')) {
 			if ($path == '/Shared') {
 				list($info) = OCP\Share::getItemsSharedWith('file', OC_Share_Backend_File::FORMAT_FILE_APP_ROOT);

-- 
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