diff options
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(); |