diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-18 09:42:20 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-18 09:42:38 +0200 |
commit | 573d36a168e6bf60a49468024dca43f2cf9eb448 (patch) | |
tree | 8a025839560281973fa721df4060721a9bf66d22 /files/index.php | |
parent | 866d01f50da501d9712e901662df0fd124937479 (diff) | |
download | nextcloud-server-573d36a168e6bf60a49468024dca43f2cf9eb448.tar.gz nextcloud-server-573d36a168e6bf60a49468024dca43f2cf9eb448.zip |
one / in filepaths is enough
Diffstat (limited to 'files/index.php')
-rw-r--r-- | files/index.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/files/index.php b/files/index.php index 2a78e8a438e..7ac3bce6051 100644 --- a/files/index.php +++ b/files/index.php @@ -42,6 +42,9 @@ $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : ''; $files = array(); foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){ $i["date"] = OC_UTIL::formatDate($i["mtime"] ); + if($i['directory']=='/'){ + $i['directory']=''; + } $files[] = $i; } |