diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-11-26 14:21:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 14:21:40 +0300 |
commit | de835bf2f26e0ab11ebdf0d815d1cf0b04c82cc4 (patch) | |
tree | e6dea3bd9d4a3600560a5660dac9fb484090d9c0 /lib/AvirWrapper.php | |
parent | b105400720bc23b9ca8ff8bcc1c9e1dc6ea46a7c (diff) | |
parent | 4b37a2449d72689819d81f4db5556cf5426d3447 (diff) |
Merge pull request #109 from nextcloud/14/shared_fixv1.4.2
Fix shared folder upload in 14
Diffstat (limited to 'lib/AvirWrapper.php')
-rw-r--r-- | lib/AvirWrapper.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/AvirWrapper.php b/lib/AvirWrapper.php index 051cd8b..a90f78d 100644 --- a/lib/AvirWrapper.php +++ b/lib/AvirWrapper.php @@ -81,7 +81,12 @@ class AvirWrapper extends Wrapper{ * - if it is a homestorage it starts with files/ * - if it is not a homestorage we always wrap (external storages) */ - if ($this->shouldScan && is_resource($stream) && $this->isWritingMode($mode) && (!$this->isHomeStorage || strpos($path, 'files/') === 0)) { + if ($this->shouldScan + && is_resource($stream) + && $this->isWritingMode($mode) + && (!$this->isHomeStorage + || strpos($path, 'files/') === 0 + || strpos($path, '/files/') === 0)) { try { $scanner = $this->scannerFactory->getScanner(); $scanner->initScanner(); |