diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index ee09b768d..8f1cc692f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -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'] diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 07f055ef7..ee9778732 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -475,12 +475,6 @@ line breaks title - - rel - - - data-bs-original-name - direction diff --git a/files/templates/submission.html b/files/templates/submission.html index fb1454463..9727e328b 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -417,9 +417,9 @@ {% if p.domain == "twitter.com" %} {{p.embed_url | safe}} {% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} - + {% else %} - + {% endif %} {% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('