projects
/
simple-upload.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc3f37
)
Only add files if feature for listing them is enabled.
author
Roland Häder
<roland@mxchange.org>
Wed, 30 Mar 2016 12:22:19 +0000
(14:22 +0200)
committer
Roland Häder
<roland@mxchange.org>
Wed, 30 Mar 2016 12:22:19 +0000
(14:22 +0200)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index 61c6488e36feee6746f2da70b0cbb8daf90169fe..2d3bbe01f2923bea4118297cb8053204999b0834 100644
(file)
--- 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";