master
Aevann1 2021-12-09 21:53:38 +02:00
parent 7b81aef8aa
commit e281262353
3 changed files with 3 additions and 9 deletions

View File

@ -84,7 +84,7 @@ def sanitize_marquee(tag, name, value):
return False
allowed_attributes = {
'*': ['href', 'style', 'src', 'class', 'title', 'rel', 'data-bs-original-name'],
'*': ['href', 'style', 'src', 'class', 'title'],
'marquee': sanitize_marquee}
allowed_protocols = ['http', 'https']

View File

@ -475,12 +475,6 @@ line breaks
<tr>
<td>title</td>
</tr>
<tr>
<td>rel</td>
</tr>
<tr>
<td>data-bs-original-name</td>
</tr>
<tr>
<td>direction</td>
</tr>

View File

@ -417,9 +417,9 @@
{% if p.domain == "twitter.com" %}
{{p.embed_url | safe}}
{% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %}
<script src="/assets/js/twitterlight.js?v=3"></script>
<script src="/assets/js/twitterlight.js?v=4"></script>
{% else %}
<script src="/assets/js/twitter.js?v=3"></script>
<script src="/assets/js/twitter.js?v=4"></script>
{% endif %}
{% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %}
{{p.embed_url | safe}}