Browse Source

normalize filepaths in OC_Files::getFileInfo

tags/v5.0.0alpha1
Robin Appelman 11 years ago
parent
commit
ae74c54d65
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/files.php

+ 1
- 0
lib/files.php View 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);

Loading…
Cancel
Save