--- typo3_src-4.2.8/typo3/sysext/indexed_search/class.indexer.php.orig 2009-07-03 20:55:30.000000000 +0200 +++ typo3_src-4.2.8/typo3/sysext/indexed_search/class.indexer.php 2009-10-14 20:11:53.000000000 +0200 @@ -918,12 +918,19 @@ if (strlen($content)) { // Create temporary file: - $tmpFile = t3lib_div::tempnam('EXTERNAL_URL').'.html'; + //$tmpFile = t3lib_div::tempnam('EXTERNAL_URL').'.html'; + // use one more variable and kick also the tempfile without '.html' ending + // Frank Bergmann, 2009-10-14 + $ctempnam = t3lib_div::tempnam('EXTERNAL_URL'); + if ($ctempnam) { // another T3 fault: never checked for FALSE + $tmpFile = $ctempnam . '.html'; // not unique anymore... t3lib_div::writeFile($tmpFile, $content); // Index that file: $this->indexRegularDocument($externalUrl, TRUE, $tmpFile, 'html'); // Using "TRUE" for second parameter to force indexing of external URLs (mtime doesn't make sense, does it?) unlink($tmpFile); + unlink($ctempnam); // remove PHP tempnam created file + } } } } @@ -2089,4 +2096,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/indexed_search/class.indexer.php']) { include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/indexed_search/class.indexer.php']); } -?> \ No newline at end of file +?>