]> source.dussan.org Git - nextcloud-server.git/commitdiff
properly block file upload to non-active filelist
authorRobin Appelman <robin@icewind.nl>
Mon, 10 Jul 2017 12:32:10 +0000 (14:32 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 12 Jul 2017 10:20:10 +0000 (12:20 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files/js/filelist.js

index b1e7c3f5f8c73b77abf1525068fc657249cbcc7c..45591e5b7a0620cdcf24ec67193045d8433803ce 100644 (file)
 
                                if (self.$el.hasClass('hidden')) {
                                        // do not upload to invisible lists
+                                       e.preventDefault();
                                        return false;
                                }
 
                                        && !self.$el.has(dropTarget).length // dropped inside list
                                        && !dropTarget.is(self.$container) // dropped on main container
                                        ) {
+                                       e.preventDefault();
                                        return false;
                                }