CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

Security.php - CSRF cookie name = token name

Open bitbucket-import opened this issue 15 years ago • 1 comments

$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; }}}

bitbucket-import avatar Aug 19 '11 14:08 bitbucket-import

This is fixed. It should be closed.

Razican avatar Feb 14 '12 09:02 Razican