mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 16:02:46 +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
d78357917c
commit
6183d9633d
|
@ -208,6 +208,10 @@
|
||||||
height: var(--calculated-height);
|
height: var(--calculated-height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
max-height: 2000px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add staff color
|
// add staff color
|
||||||
|
@ -1008,6 +1012,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