diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-08-14 02:44:45 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-08-14 02:44:45 +0200 |
commit | 0c8ce0bb32c4a79c248e71533f9fa00b844049fb (patch) | |
tree | 94764ed5d50bf2a2e751fa413231f49cfdb24670 /lib/filesystemview.php | |
parent | c31217125293c405941c1b515cb94bdf0a14a35b (diff) | |
download | nextcloud-server-0c8ce0bb32c4a79c248e71533f9fa00b844049fb.tar.gz nextcloud-server-0c8ce0bb32c4a79c248e71533f9fa00b844049fb.zip |
some basic path normalization
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r-- | lib/filesystemview.php | 5 |
1 files changed, 2 insertions, 3 deletions
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 |