[TYPO3-core] Reminder: Bug #5985 Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sat Oct 20 21:11:18 CEST 2007


Martin Kutschker schrieb:
> Andreas Otto schrieb:
>> Hi,
>>
>> any news what we are going to do with this issue?
>>
>> http://bugs.typo3.org/view.php?id=5985
> 
> Ok, here is the patch which is meant for TYPO3_4-1 only!
> 
> It simply uses @ to suppress the warning. No special handling is done 
> for that case because getURL provides no means to deal with any errors 
> or unexpected return values from the server (neither cURL nor fopen 
> branches).
> 
> It also fixes some more glitches:
> 
> * $includeHeaders works only for http and https but check allows also 
> gopher, ftp, ftps and telnet.
> 
> * $inludeHeaders has a wrong default port for https
> 
> * $includeHeaders ignores $requestHeaders

Please ignore this line

if (!$fp || $errno > 0)	{

Checking $errno is not necessary (though $ernno may be 0 even if $fp is 
false).

Masi


More information about the TYPO3-team-core mailing list