Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit f73f639

Browse files
authored
Merge pull request overtrue#57 from yueziii/fix_filename
Fix filename
2 parents 7f61327 + 6830c71 commit f73f639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StorageManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function download($url, $config)
144144
$img = new \SplFileInfo($pathRes['path']);
145145
$original = $img->getFilename();
146146
$ext = $img->getExtension();
147-
$title = config('ueditor.hash_filename') ? md5($original) . $ext : $original;
147+
$title = config('ueditor.hash_filename') ? md5($original) . '.' . $ext : $original;
148148
$filename = $this->formatPath($config['path_format'], $title);
149149
$info = [
150150
'state' => 'SUCCESS',

0 commit comments

Comments
 (0)