]> source.dussan.org Git - nextcloud-server.git/commit
Properly search the root of a shared external storage 12375/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 5 Nov 2018 15:27:43 +0000 (16:27 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 9 Nov 2018 12:21:45 +0000 (13:21 +0100)
commitb71bc1289b997eddde8f843c805324692c262007
tree7cced7ab6f506cc6bca9f534ee0c542611dc8954
parent7fba370a75bb448de8f324a5b25caa4689fd93f7
Properly search the root of a shared external storage

Fixes #1020

When an external storage is shared with you in full the root is ''
(empty). This adds an extra check for an empty jail basically.

Because if the jail is on the empty string. It matches all paths.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Files/Cache/Wrapper/CacheJail.php