Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter’s Image Manipulation class runs methods even after initialization failed
#3

[eluser]section31[/eluser]
I also don't see a check to see if the destination file is writable.

Will only take up a few lines in the initialize method.

Add this on line 240something right after $this->dest_image and $this->dest_folder are set.
Code:
if (!is_writable($this->dest_folder) && (!file_exists($this->dest_folder . $this->dest_image) || !is_writable($this->dest_folder . $this->dest_image))) {
    $this->set_error("The Destination File is not Writable.");
    return false;
}


Messages In This Thread
CodeIgniter’s Image Manipulation class runs methods even after initialization failed - by El Forum - 01-11-2008, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB