diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-17 15:46:28 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-17 15:46:28 +0200 |
commit | 918eaef728eaf49387083b39add7106e029fcfb4 (patch) | |
tree | bd7ae7ad33977cf04cd44a735ccc1465ab7b4ffc /system/core/Security.php | |
parent | 0199f68db46d375af2d4cb831c679d3040601f25 (diff) | |
parent | 324ef078dda5a3596444152ba49dd591a61adba6 (diff) |
Merge branch 'release/2.1.1'
Diffstat (limited to 'system/core/Security.php')
-rwxr-xr-x | system/core/Security.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index a3e227437..6f5ac1ed8 100755 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -848,7 +848,7 @@ class CI_Security { // each page load since a page could contain embedded // sub-pages causing this feature to fail if (isset($_COOKIE[$this->_csrf_cookie_name]) && - $_COOKIE[$this->_csrf_cookie_name] != '') + preg_match('#^[0-9a-f]{32}$#iS', $_COOKIE[$this->_csrf_cookie_name]) === 1) { return $this->_csrf_hash = $_COOKIE[$this->_csrf_cookie_name]; } |