mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-26 19:46:43 +02:00
Fix SVG detection when the root element has a namespace
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
### Fix
|
||||
- Fix HEIC/AVIF dimension limit handling.
|
||||
- Fix SVG detection when the root element has a namespace.
|
||||
- (pro) Fix style injection to SVG.
|
||||
|
||||
## [3.24.1] - 2024-04-30
|
||||
|
@@ -23,7 +23,8 @@ func IsSVG(r io.Reader) bool {
|
||||
return false
|
||||
|
||||
case xml.StartTagToken:
|
||||
return strings.ToLower(string(l.Text())) == "svg"
|
||||
tag := strings.ToLower(string(l.Text()))
|
||||
return tag == "svg" || tag == "svg:svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user