mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-26 19:46:43 +02:00
Escape quotes in content disposition
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user