diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-01 14:08:14 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-02 14:07:20 +0200 |
commit | 4b48dd424f37446dd78f4589d2474fbe47097b1f (patch) | |
tree | f24e85ce71fdc0a903056397adcd0843798b8f8d /lib | |
parent | 3ebc8f0564395fbb519fc4275e0f6f883df708b7 (diff) | |
download | nextcloud-server-4b48dd424f37446dd78f4589d2474fbe47097b1f.tar.gz nextcloud-server-4b48dd424f37446dd78f4589d2474fbe47097b1f.zip |
emit hooks from a view as long as the path is inside the default root
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index b98842f5eb7..b47fa4359f4 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -1063,7 +1063,8 @@ class View { if ($this->fakeRoot === $defaultRoot) { return true; } - return (strlen($this->fakeRoot) > strlen($defaultRoot)) && (substr($this->fakeRoot, 0, strlen($defaultRoot) + 1) === $defaultRoot . '/'); + $fullPath = $this->getAbsolutePath($path); + return (strlen($fullPath) > strlen($defaultRoot)) && (substr($fullPath, 0, strlen($defaultRoot) + 1) === $defaultRoot . '/'); } /** |