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 authored and backportbot[bot] committed Aug 31, 2021
1 parent deed544 commit 45bf7d3
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 45bf7d3

Please sign in to comment.