mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 18:25:29 +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);
|
height: var(--calculated-height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
max-height: 2000px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add staff color
|
// add staff color
|
||||||
|
@ -1009,6 +1013,7 @@ aside.quote {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
max-height: 2000px;
|
||||||
code {
|
code {
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user