marshsu / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

cache files after error #487

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. something goes wrong while download the image from other server
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.8.14

Please provide any additional information below.

start the tryServerCache procedure with an additional check:

if (filesize($this->cachefile)==0) { @unlink($this->cachefile); }

Original issue reported on code.google.com by kalman.h...@gmail.com on 1 Jul 2014 at 1:47