Escape quotes in content disposition

This commit is contained in:
DarthSim
2021-11-23 13:32:42 +06:00
parent e781ea2019
commit 2ae2a539fe

View File

@@ -99,7 +99,7 @@ func (it Type) ContentDisposition(filename string) string {
return "inline"
}
return fmt.Sprintf(format, filename)
return fmt.Sprintf(format, strings.ReplaceAll(filename, `"`, "%22"))
}
func (it Type) ContentDispositionFromURL(imageURL string) string {