Closed GoogleCodeExporter closed 8 years ago
Some error is traped when MAX_FILE_SIZE reached. Partially loaded file existing
in the cache.
Original comment by mega...@gmail.com
on 14 Feb 2011 at 9:56
Also I propose to pretend with @ all imagecreatefrom* calls to prevent warnings
if (stripos ($mime_type, 'gif') !== false) {
$image = @imagecreatefromgif ($src);
} elseif (stripos ($mime_type, 'jpeg') !== false) {
$image = @imagecreatefromjpeg ($src);
} elseif (stripos ($mime_type, 'png') !== false) {
$image = @imagecreatefrompng ($src);
}
Original comment by mega...@gmail.com
on 14 Feb 2011 at 10:21
Version of timthumb with corrected issues in this and previous tickets. Works
flawlesly with a connection problems I having there. Uses one 'goto' statement.
I know this is completle wrong, but who cares?
Original comment by mega...@gmail.com
on 14 Feb 2011 at 10:24
Attachments:
Hi - this behaviour is intentional. It is there to stop possible dos attacks
from being performed on your website. I can have increased the timeout on the
curl which should help.
I have a couple of ideas for changing/ improving the code for the caching of
external images which will allow me to increase the MAX_FILE_SIZE a bit. I am
trying to strike a balance between good use and security. All the settings can
be overriden in the defines at the top of the script.
Original comment by BinaryMoon
on 14 Feb 2011 at 10:29
So you say that living partially loaded files is intentional behavior? I don't
think so, sorry.
Original comment by mega...@gmail.com
on 15 Feb 2011 at 10:27
Original comment by BinaryMoon
on 7 May 2011 at 1:06
Original issue reported on code.google.com by
mega...@gmail.com
on 14 Feb 2011 at 9:53