mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
one / in filepaths is enough
This commit is contained in:
parent
866d01f50d
commit
573d36a168
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue