View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014420 | mantisbt | bugtracker | public | 2012-06-26 03:48 | 2014-09-23 18:05 |
Reporter | Andrew Kovalenko | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Debian GNU/Linux 6.0 | ||||
Target Version | 1.2.12 | Fixed in Version | 1.2.12 | ||
Summary | 0014420: captcha error | ||||
Description | Debian GNU/Linux 6.0 SYSTEM WARNING: 'imagejpeg(): Filename cannot be empty' in '/opt/mantis/make_captcha_img.php' line 249 Second parameter in "imagejpeg" cannot be empty string http://php.net/imagejpeg | ||||
Tags | patch | ||||
Attached Files | mypatch.patch (503 bytes)
Index: make_captcha_img.php =================================================================== --- make_captcha_img.php (revision 5752) +++ make_captcha_img.php (working copy) @@ -249,7 +249,7 @@ $x += (int)($size + ($this->minsize / 5)); } header('Content-type: image/jpeg'); - @ImageJPEG($image, '', $this->jpegquality); + @ImageJPEG($image, NULL, $this->jpegquality); @ImageDestroy($image); if($this->debug) echo "\n<br />-Captcha-Debug: Destroy Imagestream."; } | ||||
MantisBT: master-1.2.x 1b79a041 2012-06-25 23:42 Details Diff |
Fix 0014420: system warning in make_captcha Per PHP documentation [1], second param of imagejpeg() should be set to null to output the image directly. Thanks to Andrew Kovalenko for noticing and providing fix for the issue [1] http://php.net/imagejpeg |
Affected Issues 0014420 |
|
mod - make_captcha_img.php | Diff File | ||
MantisBT: master 15251868 2012-06-25 23:42 Details Diff |
Fix 0014420: system warning in make_captcha Per PHP documentation [1], second param of imagejpeg() should be set to null to output the image directly. Thanks to Andrew Kovalenko for noticing and providing fix for the issue [1] http://php.net/imagejpeg |
Affected Issues 0014420 |
|
mod - make_captcha_img.php | Diff File |