diff options
author | Andrey Andreev <narf@devilix.net> | 2014-02-15 20:45:40 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-02-15 20:45:40 +0100 |
commit | b951f8bea45c23b9ccd192865c81cf18f13ea08a (patch) | |
tree | 412a65bd3c789e3e9594b840cb26a4435706c3aa /system/core/Utf8.php | |
parent | cd74d36ae1ac34c25271b5ff81cc2fd8df099724 (diff) |
[ci skip] Micro-optimization
Diffstat (limited to 'system/core/Utf8.php')
-rw-r--r-- | system/core/Utf8.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Utf8.php b/system/core/Utf8.php index 98352db6f..c789a7ba4 100644 --- a/system/core/Utf8.php +++ b/system/core/Utf8.php @@ -51,7 +51,7 @@ class CI_Utf8 { if ( defined('PREG_BAD_UTF8_ERROR') // PCRE must support UTF-8 && (ICONV_ENABLED === TRUE OR MB_ENABLED === TRUE) // iconv or mbstring must be installed - && strnatcasecmp(config_item('charset'), 'UTF-8') === 0 // Application charset must be UTF-8 + && strtoupper(config_item('charset')) === 'UTF-8' // Application charset must be UTF-8 ) { define('UTF8_ENABLED', TRUE); |