mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
Previously, topic OG image generation passed an SVG containing data URI assets to ImageMagick, so the hardened policy denied the ordinary SVG and DATA coders and returned no preview. This change materializes assets in an isolated per-render directory, pre-rasterizes SVG assets, and renders the canvas explicitly through MSVG with the required MVG coder, restoring previews while keeping ordinary SVG, DATA, delegates, filters, and restricted paths denied and omitting invalid assets without failing the full render. |
||
|---|---|---|
| .. | ||
| policy.xml | ||