From cd2970440e1152cc30ff2bda3efce0e8c0a6c180 Mon Sep 17 00:00:00 2001 From: Joao Alves Date: Thu, 25 Mar 2021 09:48:31 +0000 Subject: [PATCH] Fixed small error. --- tinyfilemanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 73dd54e..ca69da4 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -817,7 +817,7 @@ if (isset($_GET['dl'])) { } // Execute -if (isset($_GET['exec'] && !FM_READONLY)) { +if (isset($_GET['exec']) && !FM_READONLY) { $exec = str_replace('/', '', fm_clean_path($_GET['exec'])); $path = os_path_join(FM_ROOT_PATH, FM_PATH); $file_path = os_path_join($path, $exec);