borisdaeppen/EBook--MOBI — pull request #12 by garu (2012-08-15 16:41:04+00:00)
Title: using 3-args open and variable as file handle

Hey Boris,

this is a small patch that uses 3 argument open() calls, and variables as file handles. This is the recommended way of handling files, since 2-argument open can lead to security problems, and using barewords as file handles has scoping issues that might trigger even weirder issues.

Beware, though: libgd is not building on my system so I can't test the patch. Please make sure you do :)