Update string.utl.php

This commit is contained in:
Namhyeon Go 2019-02-26 15:06:57 +09:00 committed by GitHub
parent 2ed40e017d
commit d2b871cb5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,12 +29,7 @@ if(!check_function_exists("get_converted_string")) {
$result = false;
if($form_charset == "detect") {
$fn = check_invalid_function(array(
"NO_FUNCTION_MB_DETECT_ENCODING" => "mb_detect_encoding",
"NO_FUNCTION_MB_DETECT_ORDER" => "mb_detect_order",
));
if($fn == -1) {
if(check_function_exists(array("mb_detect_encoding", "mb_detect_order"))) {
$from_charset = mb_detect_encoding($str, mb_detect_order(), true);
} else {
$from_charset = "ISO-8859-1";