]> source.dussan.org Git - nextcloud-server.git/commit
Fix getById for files in appdata and the root mount 17175/head
authorJoas Schilling <coding@schilljs.com>
Tue, 17 Sep 2019 09:15:59 +0000 (11:15 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 17 Sep 2019 09:15:59 +0000 (11:15 +0200)
commita4ba2113b2e083ea8cf358d683b1b0a370cca385
tree1fd7aee990f7b51c00a4fa4f04e1b4b8d3dd5ce4
parentd43a478840ace4cf827643f3254288b66eb75a8a
Fix getById for files in appdata and the root mount

In case the path we are currently in is inside the appdata_* folder,
the original getById method does not work, because it can only look inside
the user's mount points. But the user has no mount point for the root storage.

So in that case we directly check the mount of the root if it contains
the id. If it does we check if the path is inside the path we are working
in.

Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Files/Node/Folder.php