From c35bb7ea316136ee7eed5d00a0f94fcdd72483d1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 6 Nov 2021 20:10:57 +0200 Subject: [PATCH] dfsfds --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 9cde09727..1fd8fc043 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -125,7 +125,7 @@ def sanitize(sanitized, noimages=False): link = soup.new_tag("a") link["href"] = tag["data-src"] - if tag.get("href") and site not in tag["href"] and not tag["href"].startswith('/'): link["rel"] = "nofollow noopener noreferrer" + if site not in link["href"] and not link["href"].startswith('/'): link["rel"] = "nofollow noopener noreferrer" link["target"] = "_blank" link["onclick"] = f"expandDesktopImage('{tag['data-src']}');" link["data-bs-toggle"] = "modal"