Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security.php - CSRF cookie name = token name #12

Closed
bitbucket-import opened this issue Aug 19, 2011 · 1 comment
Closed

Security.php - CSRF cookie name = token name #12

bitbucket-import opened this issue Aug 19, 2011 · 1 comment

Comments

@bitbucket-import
Copy link

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

@Razican
Copy link
Contributor

Razican commented Feb 14, 2012

This is fixed. It should be closed.

@narfbg narfbg closed this as completed Feb 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants