From 60af5cee8f9bc469aa47f669369d2426ac211c83 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 1 Oct 2021 22:25:15 +0200 Subject: [PATCH] sfdsdf --- files/helpers/sanitize.py | 6 ++++++ files/templates/submission.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 0530b37af5..f487fc0d6a 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -251,6 +251,12 @@ def sanitize(sanitized, noimages=False): htmlsource = f'
' sanitized = sanitized.replace(replacing, htmlsource) + for i in re.finditer('{url}' + htmlsource = f'' + sanitized = sanitized.replace(replacing, htmlsource) + for i in re.finditer('{url}' diff --git a/files/templates/submission.html b/files/templates/submission.html index 6de642647f..c70b4eae7c 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -81,7 +81,7 @@ {% if p.url and p.url.lower().endswith('.mp4') %} - + {% endif %}