From 2f68f3612a2544de341a967fbea1836d6149b8cd Mon Sep 17 00:00:00 2001 From: liangliang Date: Tue, 9 May 2017 23:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlink=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DjangoBlog/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DjangoBlog/utils.py b/DjangoBlog/utils.py index 0feff66..c1516a3 100644 --- a/DjangoBlog/utils.py +++ b/DjangoBlog/utils.py @@ -124,7 +124,7 @@ class BlogMarkDownRenderer(mistune.Renderer): return '%s' % (link, nofollow, text) def link(self, link, title, text): - link = escape_link(link, quote=True) + link = escape_link(link) site = Site.objects.get_current() nofollow = "" if link.find(site.domain) > 0 else "rel='nofollow'" if not link: