Skip to content
Snippets Groups Projects
Commit ae74c54d authored by Robin Appelman's avatar Robin Appelman
Browse files

normalize filepaths in OC_Files::getFileInfo

parent e1405461
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ class OC_Files { ...@@ -42,6 +42,7 @@ class OC_Files {
* - versioned * - versioned
*/ */
public static function getFileInfo($path) { 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' || substr($path, 0, 8) == '/Shared/') && OC_App::isEnabled('files_sharing')) {
if ($path == '/Shared') { if ($path == '/Shared') {
list($info) = OCP\Share::getItemsSharedWith('file', OC_Share_Backend_File::FORMAT_FILE_APP_ROOT); list($info) = OCP\Share::getItemsSharedWith('file', OC_Share_Backend_File::FORMAT_FILE_APP_ROOT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment