Skip to content

Commit

Permalink
Merge pull request kolanos#1 from yakatz/patch-1
Browse files Browse the repository at this point in the history
Changes required for me to get it to work in Kohana 3.2 (and master from GitHub)
  • Loading branch information
nike-17 committed Mar 30, 2012
2 parents 0aef78c + 7e200c1 commit 9c102f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,10 @@ public function image_render($html)
return '<img src="'.url::site('captcha/'.Captcha::$config['group']).'" width="'.Captcha::$config['width'].'" height="'.Captcha::$config['height'].'" alt="Captcha" class="captcha" />';

// Send the correct HTTP header
$this->_get_request()->headers['Content-Type'] = 'image/'.$this->image_type;
$this->_get_request()->headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0';
$this->_get_request()->headers['Pragma'] = 'no-cache';
$this->_get_request()->headers['Connection'] = 'close';
$this->_get_request()->response()->headers('Content-Type', 'image/'.$this->image_type);
$this->_get_request()->response()->headers('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
$this->_get_request()->response()->headers('Pragma', 'no-cache');
$this->_get_request()->response()->headers('Connection', 'close');

// Pick the correct output function
$function = 'image'.$this->image_type;
Expand Down

0 comments on commit 9c102f1

Please sign in to comment.