Skip to content
Snippets Groups Projects
Commit 6d351d83 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #699 from greezybacon/issue/captcha-header


Use the correct Content-Type header for CAPTCHA

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents b972c155 6d9cf82f
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
class.captcha.php
Very basic captcha class.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
......@@ -44,7 +44,7 @@ class Captcha {
$img= imagecreatefrompng($this->bgimg);
imagestring($img,$this->font, $x, $y,$this->hash,imagecolorallocate($img,0, 0, 0));
Header ("(captcha-content-type:) image/png");
header("Content-Type: image/png");
imagepng($img);
imagedestroy($img);
$_SESSION['captcha'] = md5($this->hash);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment