summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-07-12 17:28:38 +0200
committerAndrey Andreev <narf@devilix.net>2014-07-12 17:28:38 +0200
commit11beac2458afa34fe83913b77c9ba103d90583cd (patch)
tree87cfc99ed3539ba98c060f35c39eac86c8c561e9
parent45cf68c43f782e33173f8ad2e932dc929a0cd340 (diff)
Fix CI_Encryption::substr() usage of mb_substr()
The whole point was to use 8bit encoding
-rw-r--r--system/libraries/Encryption.php2
1 files changed, 1 insertions, 1 deletions
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)