From 14d6f65195852a3f2f46f1781e5ad10dc29429ba Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Thu, 25 Oct 2007 10:55:33 +0000 Subject: [PATCH] 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 --- search2/indexing/indexerCore.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/search2/indexing/indexerCore.inc.php b/search2/indexing/indexerCore.inc.php index 71c8450..d6f54d0 100755 --- a/search2/indexing/indexerCore.inc.php +++ b/search2/indexing/indexerCore.inc.php @@ -874,7 +874,9 @@ abstract class Indexer if ($extractor->needsIntermediateSourceFile()) { - $intermediate = $tempPath . '/'. $document->getFileName(); + $extension = pathinfo($document->getFileName(), PATHINFO_EXTENSION); + + $intermediate = $tempPath . '/'. $docId . '.' . $extension; $result = @copy($sourceFile, $intermediate); if ($result === false) { -- libgit2 0.21.4