summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2010-09-02 18:11:58 +0200
committerDerek Jones <derek.jones@ellislab.com>2010-09-02 18:11:58 +0200
commit092103e4d6a4a2bcd14274055f774e4eb01ecaa3 (patch)
tree60f70a9e7dde42b39b4a34e443e350be37eadbfb /system
parenteaa71ba1c19538af5416dceec288aa37cad2b7e6 (diff)
fixed a spot where the encryption mode was still a hard coded constant instead of the fetched variable
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Encrypt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php
index 8beff75d6..b27847a55 100644
--- a/system/libraries/Encrypt.php
+++ b/system/libraries/Encrypt.php
@@ -216,7 +216,7 @@ class CI_Encrypt {
$dec = $this->_xor_decode($dec, $key);
// set the mcrypt mode back to what it should be, typically MCRYPT_MODE_CBC
- $this->set_mode(MCRYPT_MODE_CBC);
+ $this->set_mode($current_mode);
// and re-encode
return base64_encode($this->mcrypt_encode($dec, $key));