diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-29 22:28:48 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-29 22:28:48 -0700 |
commit | f660eb55aa9535c10f91ad2812fa073589fcae2b (patch) | |
tree | 11d8727061378408bbc16ede888a058ba20542fb /system/libraries/drivers | |
parent | 0097803efc1c71711bf9ccf5015fe43e75f8f28d (diff) | |
parent | ce285b8feba2f9c495fb153517c2a582421f50e0 (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'system/libraries/drivers')
-rw-r--r-- | system/libraries/drivers/Captcha/Alpha.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/drivers/Captcha/Alpha.php b/system/libraries/drivers/Captcha/Alpha.php index b3a9c9d7..27795804 100644 --- a/system/libraries/drivers/Captcha/Alpha.php +++ b/system/libraries/drivers/Captcha/Alpha.php @@ -2,7 +2,7 @@ /** * Captcha driver for "alpha" style. * - * $Id: Alpha.php 3769 2008-12-15 00:48:56Z zombor $ + * $Id: Alpha.php 4367 2009-05-27 21:23:57Z samsoir $ * * @package Captcha * @author Kohana Team @@ -81,7 +81,7 @@ class Captcha_Alpha_Driver extends Captcha_Driver { // Draw "ghost" alphabetic character $text_color = imagecolorallocatealpha($this->image, mt_rand($color_limit + 8, 255), mt_rand($color_limit + 8, 255), mt_rand($color_limit + 8, 255), mt_rand(70, 120)); - $char = substr($chars, mt_rand(0, 14), 1); + $char = $chars[mt_rand(0, 14)]; imagettftext($this->image, $size * 2, mt_rand(-45, 45), ($x - (mt_rand(5, 10))), ($y + (mt_rand(5, 10))), $text_color, $font, $char); } |