forked from MarseyWorld/MarseyWorld
sffsd
parent
7b81aef8aa
commit
e281262353
|
@ -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']
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue