Skip to content
Snippets Groups Projects
Commit fac2f2a6 authored by Björn Schießle's avatar Björn Schießle
Browse files

check explicitely all possible dir values

parent edc4447d
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,12 @@ OCP\JSON::callCheck();
if (isset($_POST['allfiles']) and $_POST['allfiles'] === 'true'){
$deleteAll = true;
$folder = isset($_POST['dir']) ? $_POST['dir'] : '/';
if ($folder === '/') {
if ($folder === '/' || $folder === '') {
OCA\Files_Trashbin\Trashbin::deleteAll();
$list = array();
} else {
if ( strlen(dirname($folder)) > 1 ) {
$dirname = dirname($folder);
if ( $dirname !== '/' && $dirname !== '.' ) {
$dirlisting = '1';
} else {
$dirlisting = '0';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment