commit | d93e6f3890fd50b9aaf1e116fa8ceb7e3f0caa05 | [log] [tgz] |
---|---|---|
author | Chris Berthe <chrisberthe@gmail.com> | Sun Sep 25 10:33:25 2011 -0400 |
committer | Chris Berthe <chrisberthe@gmail.com> | Sun Sep 25 10:33:25 2011 -0400 |
tree | d90cedfb8239d7c2a3eb3227035160041966cb1d | |
parent | d239cb78440f34502a8d136ade915a3f881c790b [diff] [blame] |
Fix #484 - Hash is never set to the cookie
diff --git a/system/core/Security.php b/system/core/Security.php index 6c4c590..84ecb06 100755 --- a/system/core/Security.php +++ b/system/core/Security.php
@@ -886,7 +886,8 @@ 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;