# SVG 仅在 Firefox 中损坏，当 Discourse 从外部 URL 复制时

**URL:** <https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835>\
**Category:** Support\
**Created:** [2019年三月28日 16:37 UTC](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835 "2019-03-28T16:37:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![OvermindDL1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overminddl1/32/115252_2.png) [@OvermindDL1](https://meta.discourse.org/u/OvermindDL1)\
**Post date:** [2019年三月28日 17:04 UTC](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835/7 "2019-03-28T17:04:15Z")

</div>

At the very least, an option to not run the optimizer (sanitizer is fine, there is nothing to sanitize in that svg anyway) would be useful so could at least not break things.

It looks like it is removing the gaussian blur filters while the links ‘to’ those filters remain.

Manually adding the missing `feGaussianBlur`’s back in fixes it and the SVG properly reappears.

Further testing shows that removing the filter attributes from the path’s also fixes it (though doesn’t look quite perfect due to the missing slight blur).

So as it stands, discourse is removing the gaussian blur filter elements while leaving the named references to them in the rest of the nodes. Discourse needs to either _not_ remove the filter nodes that contains elements that are not script-issues (gaussian blur is not) or it needs to remove the associated attributes that are referencing the now missing filter elements. Leaving it in this half-state is broken.

---

_[View the full topic](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835)._
