From ca4b1b174303672802ef1f8a597aab17a9fb0626 Mon Sep 17 00:00:00 2001 From: Torusrxxx Date: Mon, 25 Mar 2024 05:39:24 +0000 Subject: [PATCH] Disable excluded extension name from viewing (#1151) --- tinyfilemanager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index ca73f9d7..efc3ce6a 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1647,7 +1647,7 @@ function getSelected($l) { $file = $_GET['view']; $file = fm_clean_path($file, false); $file = str_replace('/', '', $file); - if ($file == '' || !is_file($path . '/' . $file) || in_array($file, $GLOBALS['exclude_items'])) { + if ($file == '' || !is_file($path . '/' . $file) || !fm_is_exclude_items($file)) { fm_set_msg(lng('File not found'), 'error'); $FM_PATH=FM_PATH; fm_redirect(FM_SELF_URL . '?p=' . urlencode($FM_PATH)); } @@ -1846,7 +1846,7 @@ class="edit-file">