diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-09-25 16:38:06 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-09-25 16:38:06 +0200 |
commit | 5a3284edd6f3de5871804c7e24a9d74e57b2b7a6 (patch) | |
tree | d90cedfb8239d7c2a3eb3227035160041966cb1d /system/core/Security.php | |
parent | d239cb78440f34502a8d136ade915a3f881c790b (diff) | |
parent | d93e6f3890fd50b9aaf1e116fa8ceb7e3f0caa05 (diff) |
Merge pull request #493 from chrisberthe/issue484
Fix #484 - Hash is never set to the cookie
Diffstat (limited to 'system/core/Security.php')
-rwxr-xr-x | system/core/Security.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index 6c4c59057..84ecb06db 100755 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -886,7 +886,8 @@ class CI_Security { return $this->_csrf_hash = $_COOKIE[$this->_csrf_cookie_name]; } - return $this->_csrf_hash = md5(uniqid(rand(), TRUE)); + $this->_csrf_hash = md5(uniqid(rand(), TRUE)); + $this->csrf_set_cookie(); } return $this->_csrf_hash; |