Update security.php

This commit is contained in:
Namhyeon Go 2018-03-19 02:53:37 +09:00 committed by GitHub
parent 989160fde0
commit fa346f0df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,7 +529,7 @@ if(!function_exists("get_cutted_string")) {
if(function_exists("iconv_substr")) { if(function_exists("iconv_substr")) {
$out_str = iconv_substr($str, $start, $len, $charset); $out_str = iconv_substr($str, $start, $len, $charset);
} elseif(iconv_substr("mb_substr")) { } elseif(function_exists("mb_substr")) {
$out_str = mb_substr($str, $start, $len, $charset); $out_str = mb_substr($str, $start, $len, $charset);
} else { } else {
$out_str = substr($str, $start, $len); $out_str = substr($str, $start, $len);