From 871b38fc26ae58a91e8bf84cfe4ce0e39e3da148 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 2 Sep 2021 00:36:22 +0200 Subject: [PATCH] fdfd --- files/helpers/sanitize.py | 4 ++-- files/templates/comments.html | 2 +- files/templates/default.html | 2 +- files/templates/formatting.html | 2 +- files/templates/login.html | 2 +- files/templates/settings.html | 2 +- files/templates/settings2.html | 2 +- files/templates/sign_up.html | 2 +- files/templates/sign_up_failed_ref.html | 2 +- files/templates/submit.html | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 19bdcd520..79ef59794 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -241,7 +241,7 @@ def sanitize(sanitized, noimages=False): for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]: sanitized = sanitized.replace(rd, "https://old.reddit.com/") - # sanitized = re.sub('([^">])(https:\/\/[^ <>]*)', r'\1\2', sanitized) - # sanitized = re.sub('

(https:\/\/[^ <>]*)', r'

\1', sanitized) + sanitized = re.sub('([^">=])(https:\/\/[^ <>]*)', r'\1\2', sanitized) + sanitized = re.sub('

(https:\/\/[^ <>]*)', r'

\1', sanitized) return sanitized diff --git a/files/templates/comments.html b/files/templates/comments.html index ffcc16906..bf07ee6b8 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -105,7 +105,7 @@ {% endif %} -

+
diff --git a/files/templates/default.html b/files/templates/default.html index 93228a4c2..dc1b526ff 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -1161,7 +1161,7 @@ {% include "expanded_image_modal.html" %} - + diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 2c4be249c..227db778f 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -145,6 +145,6 @@ We also have some custom hooks for mentioning users and subreddits. Note that th {% include "expanded_image_modal.html" %} {% include "expanded_video_modal.html" %} - + {% endblock %} diff --git a/files/templates/login.html b/files/templates/login.html index 8cd51af28..c2b3947a1 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -130,7 +130,7 @@ {% include "bootstrap.html" %} - + diff --git a/files/templates/settings.html b/files/templates/settings.html index 5981a7114..8453efaea 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -254,7 +254,7 @@
- + {% block onload %}{% endblock %} diff --git a/files/templates/settings2.html b/files/templates/settings2.html index 711af0a3f..44ed000c0 100644 --- a/files/templates/settings2.html +++ b/files/templates/settings2.html @@ -226,7 +226,7 @@ }); - + {% block scripts %} {% endblock %} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index 879743629..47176f0d6 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -225,7 +225,7 @@ - + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 41baee217..eb546812d 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -144,7 +144,7 @@ - + diff --git a/files/templates/submit.html b/files/templates/submit.html index 3563336e2..f2075a7cc 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -409,7 +409,7 @@ - +