CodeIgniter
CodeIgniter copied to clipboard
Security.php - CSRF cookie name = token name
$config['csrf_token_name'] is set to $config['csrf_token_name'].
I found this is Security.php in __construct()
{{{
!php
// Append application specific cookie prefix to token name $this->csrf_cookie_name = (config_item('cookie_prefix')) ? config_item('cookie_prefix').$this->csrf_token_name : $this->csrf_token_name; }}}
Should it not be...
{{{
!php
// Append application specific cookie prefix to token name $this->csrf_token_name = (config_item('cookie_prefix')) ? config_item('cookie_prefix').$this->csrf_token_name : $this->csrf_token_name; }}}
This is fixed. It should be closed.