A platform for community discussion. Free, open, simple.
SECURITY: Limit height of pre/svg elements
Penar Musaraj6183d9633de8
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scssindex a8ebfc909a2..06aa23e5de3 100644--- a/app/assets/stylesheets/common/base/topic-post.scss+++ b/app/assets/stylesheets/common/base/topic-post.scss@@ -208,6 +208,10 @@height: var(--calculated-height);}}++ svg {+ max-height: 2000px;+ }}// add staff color@@ -1008,6 +1012,7 @@ aside.quote {}pre {+ max-height: 2000px;code {word-wrap: normal;display: block;