Skip to content

Commit

Permalink
Merge pull request #19 from liangliangyy/dev
Browse files Browse the repository at this point in the history
修复link错误
  • Loading branch information
liangliangyy committed May 9, 2017
2 parents b797e8b + 2f68f36 commit fcc34bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DjangoBlog/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def autolink(self, link, is_email=False):
return '<a href="%s" %s>%s</a>' % (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:
Expand Down

0 comments on commit fcc34bb

Please sign in to comment.