summaryrefslogtreecommitdiffstats
path: root/system/core/Security.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-09-28 16:47:42 +0200
committerTimothy Warren <tim@timshomepage.net>2011-09-28 16:47:42 +0200
commita0cd41c5187c738d043ca5a0dc5fbf80806fd322 (patch)
tree75f145aeb7466dc150a2faf8764174234b48c47b /system/core/Security.php
parent4d292bdb56ba6afc26878d9bcd82892f48d9f1a4 (diff)
parent5a3284edd6f3de5871804c7e24a9d74e57b2b7a6 (diff)
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into develop
Diffstat (limited to 'system/core/Security.php')
-rwxr-xr-xsystem/core/Security.php3
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;