mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Add support for SVG icons with data url without encoding
This commit is contained in:
parent
c60b3f52a5
commit
7650c81ad9
2 changed files with 22 additions and 0 deletions
|
@ -194,6 +194,8 @@ func parseImageDataURL(value string) (*model.Icon, error) {
|
|||
return nil, fmt.Errorf(`icon: unable to decode data URL %q`, value)
|
||||
}
|
||||
blob = []byte(decodedData)
|
||||
case "utf8":
|
||||
blob = []byte(data)
|
||||
default:
|
||||
return nil, fmt.Errorf(`icon: unsupported data URL encoding %q`, value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue