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 | ||
---|---|---|
918 | 918 |
if (strlen($content)) { |
919 | 919 | |
920 | 920 |
// Create temporary file: |
921 |
$tmpFile = t3lib_div::tempnam('EXTERNAL_URL').'.html'; |
|
921 |
//$tmpFile = t3lib_div::tempnam('EXTERNAL_URL').'.html'; |
|
922 |
// use one more variable and kick also the tempfile without '.html' ending |
|
923 |
// Frank Bergmann, 2009-10-14 |
|
924 |
$ctempnam = t3lib_div::tempnam('EXTERNAL_URL'); |
|
925 |
if ($ctempnam) { // another T3 fault: never checked for FALSE |
|
926 |
$tmpFile = $ctempnam . '.html'; // not unique anymore... |
|
922 | 927 |
t3lib_div::writeFile($tmpFile, $content); |
923 | 928 | |
924 | 929 |
// Index that file: |
925 | 930 |
$this->indexRegularDocument($externalUrl, TRUE, $tmpFile, 'html'); // Using "TRUE" for second parameter to force indexing of external URLs (mtime doesn't make sense, does it?) |
926 | 931 |
unlink($tmpFile); |
932 |
unlink($ctempnam); // remove PHP tempnam created file |
|
933 |
} |
|
927 | 934 |
} |
928 | 935 |
} |
929 | 936 |
} |
... | ... | |
2089 | 2096 |
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/indexed_search/class.indexer.php']) { |
2090 | 2097 |
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/indexed_search/class.indexer.php']); |
2091 | 2098 |
} |
2092 |
?> |
|
2099 |
?> |