You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.
public function action_index($group = 'default')
{
// Output the Captcha challenge resource (no html)
// Pull the config group name from the URL
$captcha = Captcha::instance($group)->render(FALSE);
$this->request->headers['Content-Type'] = File::mime($captcha);
$this->request->headers['Connection'] = 'close';
//$this->request->headers['Content-length'] = filesize($captcha); // fix
$this->request->response = $captcha;
}
Now i look in render(FALSE) => \modules\captcha\classes\captcha\basic.php
last line => return $this->image_render($html);
Now i look in image_render() => \modules\captcha\classes\captcha.php
here => $this->request->headers['Content-Type'] = 'image/'.$this->image_type;
Why? I can comment it out. :)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In IE8 very often captcha doesn't display.
In Firefox very often captcha doesn't full display: http://i43.tinypic.com/foluoh.jpg (height is 50)
More: http://github.com/kolanos/kohana-captcha/issues/issue/3/#issue/3
EDIT:
I have change ..\kohana\modules\captcha\classes\controller\captcha.php
comment out this line:
//$this->request->headers['Content-length'] = filesize($captcha);
Now its working in Opera, IE8 and Firefox.
EDIT2:
I have found this:
Output is that:
Now i look in render(FALSE) => \modules\captcha\classes\captcha\basic.php
last line => return $this->image_render($html);
Now i look in image_render() => \modules\captcha\classes\captcha.php
here => $this->request->headers['Content-Type'] = 'image/'.$this->image_type;
Why? I can comment it out. :)
The text was updated successfully, but these errors were encountered: