[TYPO3-core] Re: Error in your Patch: 404_v3c.txt
Dmitry Dulepov
typo3 at accio.lv
Mon Jul 10 16:20:36 CEST 2006
Hello!
Yes, error exists but correct patch would be as in the attached file.
$ctx have to be used in that place, it only should be preceeded by one
'false' parameter.
I am sending this message to typo3 core team as well. Hopefully patch
will be approved, this is easy-to-check fix (just by php documentation).
Dmitry.
Helmut Hummel wrote:
> Dear Dmitry,
> thanks for your Patch, it works great. Nevertheless I found a little
> mistake (I think so) preventig to show the content if php-function
> file_gets_content exists. See my attached patch to correct this.
>
> Thank you for your attention
>
> Greetings
> Helmut
>
>
> ------------------------------------------------------------------------
>
> Index: t3lib/class.t3lib_div.php
> ===================================================================
> --- t3lib/class.t3lib_div.php (revision 1615)
> +++ t3lib/class.t3lib_div.php (working copy)
> @@ -2372,7 +2372,7 @@
> );
>
> if (function_exists('file_get_contents')) {
> - $content = @file_get_contents($url, $ctx);
> + $content = @file_get_contents($url);
> }
> elseif (false !== ($fd = @fopen($url, 'rb', false, $ctx))) {
> $content = '';
--
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 404_v4.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060710/2e3b2409/attachment.txt
More information about the TYPO3-team-core
mailing list