From 11beac2458afa34fe83913b77c9ba103d90583cd Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 12 Jul 2014 18:28:38 +0300 Subject: Fix CI_Encryption::substr() usage of mb_substr() The whole point was to use 8bit encoding --- system/libraries/Encryption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Encryption.php') diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index 0b759eb5d..e002c28ef 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php @@ -901,7 +901,7 @@ class CI_Encryption { { if (self::$func_override) { - return mb_substr($str, $start, $length); + return mb_substr($str, $start, $length, '8bit'); } return isset($length) -- cgit v1.2.3-24-g4f1b