From ad5ea6d91e3f9de65adebd56c1f62882517ec102 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Mon, 26 Mar 2018 01:30:57 +0200 Subject: [PATCH] Use rel attributes on links in the info field (#463) --- nyaa/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nyaa/models.py b/nyaa/models.py index 8bdd91b..a11f656 100644 --- a/nyaa/models.py +++ b/nyaa/models.py @@ -221,7 +221,8 @@ class TorrentBase(DeclarativeHelperBase): invalid_url_characters = '<>"' # Check if url contains invalid characters if not any(c in url for c in invalid_url_characters): - return '{1}'.format(url, escape_markup(unquote_url(url))) + return('{1}'.format(url, escape_markup(unquote_url(url)))) # Escaped return escape_markup(self.information)