]> source.dussan.org Git - nextcloud-server.git/commitdiff
normalize filepaths in OC_Files::getFileInfo
authorRobin Appelman <icewind@owncloud.com>
Wed, 7 Nov 2012 21:51:45 +0000 (22:51 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 7 Nov 2012 21:51:45 +0000 (22:51 +0100)
lib/files.php

index 2b2b8b42dc41360a4b5ef72e942ef92c7dc748e5..f58f74f7674979f3e0146de47fec3a14fcb39f6e 100644 (file)
@@ -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);