From: Robin Appelman Date: Mon, 18 Apr 2011 07:42:20 +0000 (+0200) Subject: one / in filepaths is enough X-Git-Tag: v3.0~267^2~558^2~67^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=573d36a168e6bf60a49468024dca43f2cf9eb448;p=nextcloud-server.git one / in filepaths is enough --- 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; }