meghlal / timthumb

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

error handling negative width/height #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
default new_width and new_height are set if both are 0
As they are casted in integer, the check should also be done against negative 
values.

Original issue reported on code.google.com by gibbo...@gmail.com on 25 Nov 2010 at 2:24

Attachments:

GoogleCodeExporter commented 9 years ago
good idea. I have changed this so that the initial get_request is wrapped in an 
abs, which will always make the request positive (and reduces the if 
statements). Also wrapped the quality get_request for the same reason

Original comment by BinaryMoon on 26 Nov 2010 at 11:49