aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-01-12 12:39:42 +0100
committerGravatar GitHub <[email protected]>2020-01-12 12:39:42 +0100
commitacc8b5e5de72e63c37959cd4e62b1e6e462b25ee (patch)
tree0e3ec2b9a6b45785d764f5e445626662618cbab6 /pydis_site/settings.py
parentMerge branch 'bot#549-show-attachments-staff' of https://github.com/python-di... (diff)
parentAdding iframe attributes to attribute whitelist (diff)
Merge branch 'master' into bot#549-show-attachments-staff
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r--pydis_site/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 66376c4e..72cc0ab9 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -373,10 +373,11 @@ WIKI_MARKDOWN_HTML_ATTRIBUTES = {
'img': ['class', 'id', 'src', 'alt', 'width', 'height'],
'section': ['class', 'id'],
'article': ['class', 'id'],
+ 'iframe': ['width', 'height', 'src', 'frameborder', 'allow', 'allowfullscreen'],
}
WIKI_MARKDOWN_HTML_WHITELIST = [
- 'article', 'section', 'button'
+ 'article', 'section', 'button', 'iframe'
]