mirror of
https://github.com/thomiceli/opengist.git
synced 2025-05-14 00:02:10 +02:00
Merge pull request #20 from thomiceli/fix/trim-filenames
Trim filenames
This commit is contained in:
commit
c45b418bd0
@ -240,7 +240,7 @@ func processCreate(ctx echo.Context) error {
|
||||
}
|
||||
|
||||
dto.Files = append(dto.Files, models.FileDTO{
|
||||
Filename: name,
|
||||
Filename: strings.Trim(name, " "),
|
||||
Content: escapedValue,
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user