Browse Source

Fix #312. Quote file names of attachments.

tags/v1.2.0-rc1
Justin 11 years ago
parent
commit
ad7beb78d0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      routers/repo/issue.go

+ 3
- 1
routers/repo/issue.go View File

@@ -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…
Cancel
Save