commit | 11beac2458afa34fe83913b77c9ba103d90583cd | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Sat Jul 12 18:28:38 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Sat Jul 12 18:28:38 2014 +0300 |
tree | 87cfc99ed3539ba98c060f35c39eac86c8c561e9 | |
parent | 45cf68c43f782e33173f8ad2e932dc929a0cd340 [diff] [blame] |
Fix CI_Encryption::substr() usage of mb_substr() The whole point was to use 8bit encoding
diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index 0b759eb..e002c28 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php
@@ -901,7 +901,7 @@ { if (self::$func_override) { - return mb_substr($str, $start, $length); + return mb_substr($str, $start, $length, '8bit'); } return isset($length)