From 6808cf86792a48e4a4195f47f11057383246ab67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 30 Mar 2016 14:22:19 +0200 Subject: [PATCH] Only add files if feature for listing them is enabled. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 61c6488..2d3bbe0 100644 --- a/index.php +++ b/index.php @@ -193,7 +193,7 @@ // Moving uploaded file OK if (move_uploaded_file($file_data['tmp_name'], $file_data['upload_target_file'])) { - if ($settings['allow_deletion'] || $settings['allow_private']) + if ($settings['listfiles'] && ($settings['allow_deletion'] || $settings['allow_private'])) $_SESSION['upload_user_files'][] = $file_data['target_file_name']; echo $settings['url'] . $file_data['target_file_name'] . "\n"; -- 2.39.5