1
0
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:
DarthSim 2020-02-03 17:44:49 +06:00
parent e31950e1ef
commit 6db5b8e90b
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# Changelog
## [Unreleased]
### Fixed
- Fix detection of SVG starting with a comment.
## [2.9.0] - 2020-01-30
### Added

View File

@ -12,4 +12,6 @@ func init() {
}
RegisterFormat("<?xml ", decodeMeta)
RegisterFormat("<svg", decodeMeta)
// We believe that file starting with HTML comment is SVG
RegisterFormat("<!--", decodeMeta)
}