fix locking root of a view

This commit is contained in:
Robin Appelman 2015-05-20 15:22:53 +02:00
parent b98dd3ceb8
commit f0b8672729

View file

@ -1618,11 +1618,11 @@ class View {
* @return string[]
*/
private function getParents($path) {
$path = trim($path, '/');
if (!$path) {
return [];
}
$path = trim($path, '/');
$parts = explode('/', $path);
// remove the single file