Bug #21387 » typo3-4.2.8-class.indexer.php.no-external_url-in-typo3temp.patch
typo3_src-4.2.8/typo3/sysext/indexed_search/class.indexer.php 2009-10-14 20:11:53.000000000 +0200 | ||
---|---|---|
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
|
||
}
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
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']);
|
||
}
|
||
?>
|
||
?>
|