From b3d73bd215504d9ba2af69af4d9aeb2dcd881504 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 5 Oct 2021 16:42:51 +0200 Subject: [PATCH] fg --- files/helpers/sanitize.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index fc9fa6fcd..d7275f2f6 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -93,7 +93,7 @@ _allowed_styles =[ # filter to make all links show domain on hover -def a_modify(attrs, whatever): +def a_modify(attrs): raw_url=attrs.get((None, "href"), None) if raw_url: @@ -104,8 +104,6 @@ def a_modify(attrs, whatever): if domain and not domain.endswith(domain): attrs[(None, "rel")] = "nofollow noopener noreferrer" - # Force https for all external links in comments - # (Website already forces its own https) new_url = ParseResult(scheme="https", netloc=parsed_url.netloc, path=parsed_url.path,