diff options
author | ctrlaltca@gmail.com <> | 2011-11-22 16:08:24 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-11-22 16:08:24 +0000 |
commit | 5b1e3ad62185b81f49f631eff009fa8580bcf943 (patch) | |
tree | 6209773a8dae24476502bca3c4649e409555b87d /framework/Web/UI/WebControls/assets | |
parent | 2b63e4e3558e2766a75f002bf421f81cc48fd632 (diff) |
TCaptcha: publish images with image/png content-type
Diffstat (limited to 'framework/Web/UI/WebControls/assets')
-rw-r--r-- | framework/Web/UI/WebControls/assets/captcha.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/assets/captcha.php b/framework/Web/UI/WebControls/assets/captcha.php index 2d787af4..b5d0303b 100644 --- a/framework/Web/UI/WebControls/assets/captcha.php +++ b/framework/Web/UI/WebControls/assets/captcha.php @@ -4,7 +4,7 @@ *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright © 2005-2011 PradoSoft + * @copyright Copyright © 2005-2011 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Web.UI.WebControls.assets
@@ -116,7 +116,8 @@ function displayToken($token,$fontSize,$theme) imagettftext($image,$size,$angle,$x+2,$y+2,$color,$font,$token[$i]);
imagecolordeallocate($image,$color);
}
-
+
+ header('Content-Type: image/png');
imagepng($image);
imagedestroy($image);
}
|