# رفع شعار SVG أبيض يؤدي إلى إزالة تنسيقاته ويصبح أسود

**URL:** <https://meta.discourse.org/t/uploading-a-white-svg-logo-gets-it-styles-removed-and-becomes-black/108575>\
**Category:** Bug\
**Created:** [7 فبراير 2019، 8:46ص UTC](https://meta.discourse.org/t/uploading-a-white-svg-logo-gets-it-styles-removed-and-becomes-black/108575 "2019-02-07T08:46:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [7 فبراير 2019، 10:20ص UTC](https://meta.discourse.org/t/uploading-a-white-svg-logo-gets-it-styles-removed-and-becomes-black/108575/3 "2019-02-07T10:20:38Z")

</div>

> <https://security.stackexchange.com/questions/11384/exploits-or-other-security-risks-with-svg-upload>

SVG recommendations:

- Disable all DTD processing, XInclude, XSL, XSI and entity resolution.
- SVG files can include JavaScript, so that has to be disabled

I don’t think `<style>` is dangerous and I can’t remember why we originally did this.. but the above _definitely_ should be checked.

---

_[View the full topic](https://meta.discourse.org/t/uploading-a-white-svg-logo-gets-it-styles-removed-and-becomes-black/108575)._
