Skip to content

Commit 1525186

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 65d5f1a commit 1525186

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
@@ -256,7 +256,7 @@ function make_captcha( $private_key )
256256
$x += (int)($size + ($this->minsize / 5));
257257
}
258258
header('Content-type: image/jpeg');
259-
@ImageJPEG($image, '', $this->jpegquality);
259+
@ImageJPEG($image, null, $this->jpegquality);
260260
@ImageDestroy($image);
261261
if($this->debug) echo "\n<br />-Captcha-Debug: Destroy Imagestream.";
262262
}

0 commit comments

Comments
 (0)
Please sign in to comment.