mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #801 from sebgie/issue#780
Fix for images with special chars
This commit is contained in:
commit
3a852b8dbb
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ adminControllers = {
|
|||
tmp_path = req.files.uploadimage.path,
|
||||
dir = path.join('content/images', year, month),
|
||||
ext = path.extname(req.files.uploadimage.name).toLowerCase(),
|
||||
basename = path.basename(req.files.uploadimage.name, ext);
|
||||
basename = path.basename(req.files.uploadimage.name, ext).replace(/[\W]/gi, '_');
|
||||
|
||||
function renameFile(target_path) {
|
||||
// adds directories recursively
|
||||
|
|
Loading…
Add table
Reference in a new issue