diff options
author | patwork <patwork@gmail.com> | 2011-04-11 13:02:32 +0200 |
---|---|---|
committer | patwork <patwork@gmail.com> | 2011-04-11 13:02:32 +0200 |
commit | 9e2679849611ce050f5636c44b6c3279328d00f9 (patch) | |
tree | da881113ee460469bc65561854cb335e8f0961d5 /system | |
parent | 571023b24f705d9c0bbaecf2e3cbbc06752390b4 (diff) |
Fix: codeigniter-reactor/199 cookie name was overwritten with token name
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Security.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index 73a3cfb31..4f91572ed 100644 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -67,8 +67,10 @@ class CI_Security { } } - // 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; + // Append application specific cookie prefix + if (config_item('cookie_prefix')) { + $this->_csrf_cookie_name = config_item('cookie_prefix').$this->_csrf_cookie_name; + } // Set the CSRF hash $this->_csrf_set_hash(); |