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