summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-07 22:51:45 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-07 22:54:10 +0100
commitae74c54d65a9034e9c3e62afd0ba72d7c49acc27 (patch)
treec9a1ac0a350129dc45a9962b54de11fd6b016112 /lib/files.php
parente14054610f3dcb672370158da87f4db3c0e43552 (diff)
downloadnextcloud-server-ae74c54d65a9034e9c3e62afd0ba72d7c49acc27.tar.gz
nextcloud-server-ae74c54d65a9034e9c3e62afd0ba72d7c49acc27.zip
normalize filepaths in OC_Files::getFileInfo
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php1
1 files changed, 1 insertions, 0 deletions
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);