]> source.dussan.org Git - nextcloud-server.git/commit
Prevent deleting storage root
authorVincent Petry <pvince81@owncloud.com>
Wed, 8 Jan 2014 12:17:36 +0000 (13:17 +0100)
committerVincent Petry <pvince81@owncloud.com>
Wed, 8 Jan 2014 12:17:36 +0000 (13:17 +0100)
commitf642ad39614970de67358d80517bc1d76a006e0e
tree3606c38d2a8404307a03cb494e89e55c8206c293
parentbb443ae937bdbc9f50c352d34abeaa0eaa3fa890
Prevent deleting storage root

Storage mount points are not deletable, so make sure that the unlink
operation and its hooks aren't run in such cases.

Note that some storages might recursively delete their contents when
calling unlink on their root. This fix prevents that as well.
lib/private/files/view.php
tests/lib/files/view.php