这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@poppingmoon
Copy link
Owner

Changed to use SvgPicture only if the image url before ? ends with .svg.

For example, an image url https://example.tld/image.svg can be converted to https://example.tld/proxy/preview.webp?url=https://example.tld/image.svg with a media proxy.
The proxied url directs to a webp image file, so it should not be parsed as a svg image.

Changed to use `SvgPicture` only if the image url before `?` ends with
`.svg`.

For example, an image url `https://example.tld/image.svg` can be
converted to `https://example.tld/proxy/preview.webp?url=https://example.tld/image.svg`
with a media proxy.
The proxied url directs to a webp image file, so it should not be parsed
as a svg image.
@poppingmoon poppingmoon merged commit 77fa569 into main May 8, 2024
@poppingmoon poppingmoon deleted the svg-extension branch May 8, 2024 22:41
@poppingmoon poppingmoon mentioned this pull request May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants