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 %}