|
@@ -20,7 +20,7 @@ |
|
|
block discarded – undo |
|
20
|
20
|
// set header. Class response->header->set is not working here (content output directly before) |
|
21
|
21
|
header('Content-type: image/jpeg'); |
|
22
|
22
|
$builder = new CaptchaBuilder(); |
|
23
|
|
- $builder->build(mt_rand(200, 250), mt_rand(70,80)); // build and set random width/height |
|
|
23
|
+ $builder->build(mt_rand(200, 250), mt_rand(70, 80)); // build and set random width/height |
|
24
|
24
|
// set captcha value to session |
|
25
|
25
|
App::$Session->set('captcha', $builder->getPhrase()); |
|
26
|
26
|
|
Please login to merge, or discard this patch.