From 0c8ce0bb32c4a79c248e71533f9fa00b844049fb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 14 Aug 2012 02:44:45 +0200 Subject: some basic path normalization --- lib/filesystemview.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/filesystemview.php') diff --git a/lib/filesystemview.php b/lib/filesystemview.php index faf3f0bd4cc..17d09a07001 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -54,10 +54,9 @@ class OC_FilesystemView { if($path[0]!=='/'){ $path='/'.$path; } - return $this->fakeRoot.$path; + return OC_Filesystem::normalizePath($this->fakeRoot.$path); } - - + /** * change the root to a fake toor * @param string fakeRoot -- cgit v1.2.3