Closed dleffler closed 3 years ago
As a note, in line 1003 of the current phpthumb.functions.php code, the following won't work since it's not called from within the object $this;
@chmod($tempfilename, $this->getParameter('config_file_create_mask'));
possible fix is
$phpthumb = new phpthumb(); @chmod($tempfilename, $phpthumb->getParameter('config_file_create_mask'));
Additionally this same error occurs within phpThumb.php at line 44 which also references $this
$downloadfilename = phpthumb_functions::SanitizeFilename((!empty($phpThumb->src) ? basename($phpThumb->src) : md5($this->rawImageData)).'-'.intval($getimagesize[0]).'x'.intval($getimagesize[1]).'.'.(!empty($_GET['f']) ? $_GET['f'] : 'jpg'));
$downloadfilename = phpthumb_functions::SanitizeFilename((!empty($phpThumb->src) ? basename($phpThumb->src) : md5($phpThumb->rawImageData)).'-'.intval($getimagesize[0]).'x'.intval($getimagesize[1]).'.'.(!empty($_GET['f']) ? $_GET['f'] : 'jpg'));
Changed in https://github.com/JamesHeinrich/phpThumb/commit/a2f5546b2aa502dc08e80a2ca8fca0ae342da5b0
As a note, in line 1003 of the current phpthumb.functions.php code, the following won't work since it's not called from within the object $this;
possible fix is
Additionally this same error occurs within phpThumb.php at line 44 which also references $this
possible fix is