Commit 14d6f65195852a3f2f46f1781e5ad10dc29429ba

Authored by Conrad Vermeulen
1 parent 1a36da41

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,7 +874,9 @@ abstract class Indexer
874 874
875 if ($extractor->needsIntermediateSourceFile()) 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 $result = @copy($sourceFile, $intermediate); 880 $result = @copy($sourceFile, $intermediate);
879 if ($result === false) 881 if ($result === false)
880 { 882 {