From 0d0376807ffe27f08bfe36149ec732d84f05762c Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 6 Jun 2014 13:57:47 +0300 Subject: Issue #3084 --- system/libraries/Session.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'system') diff --git a/system/libraries/Session.php b/system/libraries/Session.php index b6c53c71d..5f4f60547 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -672,11 +672,8 @@ class CI_Session { { $cookie_data = $this->CI->encrypt->encode($cookie_data); } - else - { - // if encryption is not used, we provide an md5 hash to prevent userside tampering - $cookie_data .= hash_hmac('sha1', $cookie_data, $this->encryption_key); - } + + $cookie_data .= hash_hmac('sha1', $cookie_data, $this->encryption_key); $expire = ($this->sess_expire_on_close === TRUE) ? 0 : $this->sess_expiration + time(); -- cgit v1.2.3-24-g4f1b