mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 18:56:11 +01:00
Merge pull request #314 from nuss-justin/issue/312
Fix #312. Quote file names of attachments.
This commit is contained in:
commit
30d7397f97
|
@ -1079,5 +1079,7 @@ func IssueGetAttachment(ctx *middleware.Context, params martini.Params) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.ServeFile(attachment.Path, attachment.Name)
|
// Fix #312. Attachments with , in their name are not handled correctly by Google Chrome.
|
||||||
|
// We must put the name in " manually.
|
||||||
|
ctx.ServeFile(attachment.Path, "\"" + attachment.Name + "\"")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue