diff --git a/application/common/library/Upload.php b/application/common/library/Upload.php index 66afc1dc8d3d12ad5fe249df56eea86dd6913fb1..bbc2446c9256a3c90749e47b798237cfdd50f169 100644 --- a/application/common/library/Upload.php +++ b/application/common/library/Upload.php @@ -358,7 +358,7 @@ class Upload $params = array( 'admin_id' => (int)session('admin.id'), 'user_id' => (int)$auth->id, - 'filename' => substr(htmlspecialchars(strip_tags($this->fileInfo['name'])), 0, 100), + 'filename' => mb_substr(htmlspecialchars(strip_tags($this->fileInfo['name'])), 0, 100), 'category' => $category, 'filesize' => $this->fileInfo['size'], 'imagewidth' => $this->fileInfo['imagewidth'],