mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-27 20:17:20 +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 "inline"
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf(format, filename)
|
return fmt.Sprintf(format, strings.ReplaceAll(filename, `"`, "%22"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (it Type) ContentDispositionFromURL(imageURL string) string {
|
func (it Type) ContentDispositionFromURL(imageURL string) string {
|
||||||
|
Reference in New Issue
Block a user