diff options
author | Mike Funk <mfunk@xulonpress.com> | 2012-03-12 14:44:42 +0100 |
---|---|---|
committer | Mike Funk <mfunk@xulonpress.com> | 2012-03-12 14:44:42 +0100 |
commit | 306f56c1bfdafd149b1059325a687ec1a185d00f (patch) | |
tree | 62e2261c3b429153b9e62f3f676d7de6c18a6bfb /system/core/Security.php | |
parent | db70d047a6ac256eb336a2b04385aa010d6cbf42 (diff) | |
parent | b3442a165a091c552a3331ece94297d5fe316fee (diff) |
Merge branch 'develop' of https://github.com/EllisLab/CodeIgniter into feature/all_flashdata
Diffstat (limited to 'system/core/Security.php')
-rwxr-xr-x | system/core/Security.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index 6f25fb5bb..cd8a61028 100755 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -2,7 +2,7 @@ /** * CodeIgniter * - * An open source application development framework for PHP 5.1.6 or newer + * An open source application development framework for PHP 5.2.4 or newer * * NOTICE OF LICENSE * @@ -138,8 +138,8 @@ class CI_Security { */ public function csrf_verify() { - // If no POST data exists we will set the CSRF cookie - if (count($_POST) === 0) + // If it's not a POST request we will set the CSRF cookie + if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') { return $this->csrf_set_cookie(); } |