mirror of https://gitee.com/karson/fastadmin.git
修复当文件名称为中文时截断导致的乱码报错问题。
parent
ac2b3ffbff
commit
3a0352e183
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue