diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index bd2fdcda2d..e5c24e9b6e 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -214,7 +214,7 @@ def sanitize(text, linkgen=False, flair=False): url_noquery = url.split('?')[0] sanitized = sanitized.replace(url, f"{url_noquery}?{urlencode(p, True)}") - for i in re.finditer('
(https.*)
', sanitized): + for i in re.finditer('(https.*)', sanitized): sanitized = sanitized.replace(i.group(1), f"{i.group(1)}
") return sanitized \ No newline at end of file