Skip to content

Commit

Permalink
do not index content from temp office files
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Aug 30, 2021
1 parent c8826e2 commit 25fc6a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Service/FilesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,10 @@ private function extractContentFromFileOffice(FilesDocument $document, File $fil
return;
}

if (substr($file->getName(), 0, 2) === '~$') {
return;
}

if ($this->configService->getAppValue(ConfigService::FILES_OFFICE) !== '1') {
$document->setContent('');

Expand Down

0 comments on commit 25fc6a1

Please sign in to comment.