Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1b79a04

Browse files
committedJun 26, 2012
Fix #14420: 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
1 parent 3de78aa commit 1b79a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎make_captcha_img.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function make_captcha( $private_key )
246246
$x += (int)($size + ($this->minsize / 5));
247247
}
248248
header('Content-type: image/jpeg');
249-
@ImageJPEG($image, '', $this->jpegquality);
249+
@ImageJPEG($image, null, $this->jpegquality);
250250
@ImageDestroy($image);
251251
if($this->debug) echo "\n<br />-Captcha-Debug: Destroy Imagestream.";
252252
}

0 commit comments

Comments
 (0)
Please sign in to comment.