diff options
author | Timothy Warren <tim@timshomepage.net> | 2011-09-28 16:47:42 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2011-09-28 16:47:42 +0200 |
commit | a0cd41c5187c738d043ca5a0dc5fbf80806fd322 (patch) | |
tree | 75f145aeb7466dc150a2faf8764174234b48c47b /system/core | |
parent | 4d292bdb56ba6afc26878d9bcd82892f48d9f1a4 (diff) | |
parent | 5a3284edd6f3de5871804c7e24a9d74e57b2b7a6 (diff) |
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into develop
Diffstat (limited to 'system/core')
-rwxr-xr-x | system/core/Input.php | 2 | ||||
-rwxr-xr-x | system/core/Security.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/system/core/Input.php b/system/core/Input.php index f39371fb0..6f8442107 100755 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -555,7 +555,7 @@ class CI_Input { } // We strip slashes if magic quotes is on to keep things consistent - if (function_exists('get_magic_quotes_gpc') AND get_magic_quotes_gpc()) + if (function_exists('get_magic_quotes_gpc') AND @get_magic_quotes_gpc()) { $str = stripslashes($str); } 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; |