forked from rDrama/rDrama
sffsd
parent
7b81aef8aa
commit
e281262353
|
@ -84,7 +84,7 @@ def sanitize_marquee(tag, name, value):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
allowed_attributes = {
|
allowed_attributes = {
|
||||||
'*': ['href', 'style', 'src', 'class', 'title', 'rel', 'data-bs-original-name'],
|
'*': ['href', 'style', 'src', 'class', 'title'],
|
||||||
'marquee': sanitize_marquee}
|
'marquee': sanitize_marquee}
|
||||||
|
|
||||||
allowed_protocols = ['http', 'https']
|
allowed_protocols = ['http', 'https']
|
||||||
|
|
|
@ -475,12 +475,6 @@ line breaks
|
||||||
<tr>
|
<tr>
|
||||||
<td>title</td>
|
<td>title</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>rel</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>data-bs-original-name</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>direction</td>
|
<td>direction</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -417,9 +417,9 @@
|
||||||
{% if p.domain == "twitter.com" %}
|
{% if p.domain == "twitter.com" %}
|
||||||
{{p.embed_url | safe}}
|
{{p.embed_url | safe}}
|
||||||
{% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %}
|
{% 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 %}
|
{% else %}
|
||||||
<script src="/assets/js/twitter.js?v=3"></script>
|
<script src="/assets/js/twitter.js?v=4"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %}
|
{% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %}
|
||||||
{{p.embed_url | safe}}
|
{{p.embed_url | safe}}
|
||||||
|
|
Loading…
Reference in New Issue