From e2812623538fefc8217cd8fb785233141d8e570b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 9 Dec 2021 21:53:38 +0200 Subject: [PATCH] sffsd --- files/helpers/sanitize.py | 2 +- files/templates/formatting.html | 6 ------ files/templates/submission.html | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) 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('