From ae74c54d65a9034e9c3e62afd0ba72d7c49acc27 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 7 Nov 2012 22:51:45 +0100 Subject: [PATCH] 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 3e15c68d885..ac4aa36c01d 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);