summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-06-06 12:57:47 +0200
committerAndrey Andreev <narf@devilix.net>2014-06-06 12:57:47 +0200
commit0d0376807ffe27f08bfe36149ec732d84f05762c (patch)
tree92c0ec98e6281829048360d909efb940e37a9d60 /system
parent41fb2434ab7cd0fb373bbf966175e1abfad6603b (diff)
Issue #3084
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Session.php7
1 files changed, 2 insertions, 5 deletions
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();