diff --git a/application/common/library/Upload.php b/application/common/library/Upload.php index 66afc1dc..bbc2446c 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'],