Issue Bug Closed

#13756External links to big files crash TYPO3

Daniel Minder 03/10/11, 16:34 updated 12/10/13, 01:33

Description

External links are fetched completely using t3lib_div:getURL(). For big files, this results in a crash of TYPO3 in line 3066 of class t3lib_div (TYPO3 4.5.2), which is this line:
$content .= stream_get_contents($fp);
Here, TYPO3 wants to append the whole content of the file to a variable – until the memory limit. Crash.

The only solution would be to fetch only the header (which would also speed up the link checking). But in class.tx_linkvalidator_linktype_external.php I find the comment
“try fetching the content of the URL (just fetching the headers does not work correctly)”

What’s the problem about only fetching the headers? Is there any solution to this problem at all???

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.