mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
SECURITY: set max-height property for iframes (#22084)
Co-authored-by: David Battersby <info@davidbattersby.com>
This commit is contained in:
@ -1536,6 +1536,11 @@ span.mention {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: #{"min(1000px, 200vh)"};
|
||||||
|
}
|
||||||
|
|
||||||
.post-admin-menu {
|
.post-admin-menu {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -373,10 +373,6 @@ button.expand-post {
|
|||||||
margin-left: var(--topic-body-width-padding);
|
margin-left: var(--topic-body-width-padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
video {
|
video {
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
|
@ -276,10 +276,6 @@ span.post-count {
|
|||||||
z-index: z("tooltip");
|
z-index: z("tooltip");
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-group {
|
.btn-group {
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
Reference in New Issue
Block a user