|
@@ -366,7 +366,8 @@ class Upload
|
|
|
$savekey = $savekey ? $savekey : $this->getSavekey();
|
|
|
$savekey = '/' . ltrim($savekey, '/');
|
|
|
$uploadDir = substr($savekey, 0, strripos($savekey, '/') + 1);
|
|
|
- $fileName = substr($savekey, strripos($savekey, '/') + 1);
|
|
|
+// $fileName = substr($savekey, strripos($savekey, '/') + 1);
|
|
|
+ $fileName = mb_substr(htmlspecialchars(strip_tags($this->fileInfo['name'])), 0, 100);
|
|
|
|
|
|
$destDir = ROOT_PATH . 'public' . str_replace('/', DS, $uploadDir);
|
|
|
|