From 107d9a86840fb5f1b66f2ac1084cf95800462618 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 31 Aug 2022 08:38:51 +0200 Subject: [PATCH] check if file in drop folder is readable --- views/bootstrap/class.DropFolderChooser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.DropFolderChooser.php b/views/bootstrap/class.DropFolderChooser.php index f96c0cf31..bae2b04da 100644 --- a/views/bootstrap/class.DropFolderChooser.php +++ b/views/bootstrap/class.DropFolderChooser.php @@ -79,7 +79,7 @@ $('.folderselect').click(function(ev) { $finfo = finfo_open(FILEINFO_MIME_TYPE); while (false !== ($entry = $d->read())) { if($entry != '..' && $entry != '.') { - if($showfolders == 0 && !is_dir($dir.'/'.$entry)) { + if($showfolders == 0 && !is_dir($dir.'/'.$entry) && is_readable($dir.'/'.$entry)) { $c++; $subitem = array('label'=>'', 'attributes'=>array(array('title', getMLText('menu_upload_from_dropfolder')))); if($folder)