mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:13:45 +08:00
SECURITY: Limit height of pre/svg elements
Ensures posts cannot have SVG or PRE elements that are too tall.
This commit is contained in:
parent
2c45b949ea
commit
89a2e60706
|
@ -202,6 +202,10 @@
|
|||
height: var(--calculated-height);
|
||||
}
|
||||
}
|
||||
|
||||
svg {
|
||||
max-height: 2000px;
|
||||
}
|
||||
}
|
||||
|
||||
// add staff color
|
||||
|
@ -1009,6 +1013,7 @@ aside.quote {
|
|||
}
|
||||
|
||||
pre {
|
||||
max-height: 2000px;
|
||||
code {
|
||||
word-wrap: normal;
|
||||
display: block;
|
||||
|
|
Loading…
Reference in New Issue
Block a user