mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-01-08 10:45:04 +02:00
Add <!-- as magic bytes for SVG detection
This commit is contained in:
parent
e31950e1ef
commit
6db5b8e90b
@ -1,6 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
- Fix detection of SVG starting with a comment.
|
||||
|
||||
## [2.9.0] - 2020-01-30
|
||||
### Added
|
||||
|
@ -12,4 +12,6 @@ func init() {
|
||||
}
|
||||
RegisterFormat("<?xml ", decodeMeta)
|
||||
RegisterFormat("<svg", decodeMeta)
|
||||
// We believe that file starting with HTML comment is SVG
|
||||
RegisterFormat("<!--", decodeMeta)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user