Commit 38266a7762a03d69c5e4e975e955438f9199407d

Authored by conradverm
1 parent f252387e

KTS-2585

"Open Office extractors may produce python error if filename contains illegal characters"
Fixed. Rather than creating a file with filename, we create one with the docid and the extension

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7571 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/indexing/indexerCore.inc.php
... ... @@ -874,7 +874,9 @@ abstract class Indexer
874 874  
875 875 if ($extractor->needsIntermediateSourceFile())
876 876 {
877   - $intermediate = $tempPath . '/'. $document->getFileName();
  877 + $extension = pathinfo($document->getFileName(), PATHINFO_EXTENSION);
  878 +
  879 + $intermediate = $tempPath . '/'. $docId . '.' . $extension;
878 880 $result = @copy($sourceFile, $intermediate);
879 881 if ($result === false)
880 882 {
... ...