From 63602e44c9535cb6e2dd3fb3740a4deb04877787 Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Tue, 11 Jan 2022 18:02:30 +0100 Subject: [PATCH] Also Filter Directories --- index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.php b/index.php index 62be6eb..f5d957c 100644 --- a/index.php +++ b/index.php @@ -71,10 +71,12 @@ if (isset($_GET['f'])) { $tr = array('(' => '\(', ')' => '\)'); $f = strtr($_GET['f'], $tr); $files = array_values(preg_grep('/.*'.$f.'.*/i', $files)); + $dirs = array_values(preg_grep('/.*'.$f.'.*/i', $dirs)); $filter='&f='.$_GET['f']; } } + // Sort and Reverse Filelist natcasesort($files); $files = array_reverse($files);