aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-07-10 14:32:10 +0200
committerRobin Appelman <robin@icewind.nl>2017-07-10 14:32:10 +0200
commit12c9b1efb077a45a6ef0bf29ac7e5b149539cf49 (patch)
tree0220e4870eaaa95ab389202f33ab9ae5c9150a11 /apps/files
parentc7b28064e3c8335312a644b94ced602a9f0fea0f (diff)
downloadnextcloud-server-12c9b1efb077a45a6ef0bf29ac7e5b149539cf49.tar.gz
nextcloud-server-12c9b1efb077a45a6ef0bf29ac7e5b149539cf49.zip
properly block file upload to non-active filelist
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 086e148e102..6cf12571ca0 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2742,6 +2742,7 @@
if (self.$el.hasClass('hidden')) {
// do not upload to invisible lists
+ e.preventDefault();
return false;
}
@@ -2753,6 +2754,7 @@
&& !self.$el.has(dropTarget).length // dropped inside list
&& !dropTarget.is(self.$container) // dropped on main container
) {
+ e.preventDefault();
return false;
}