Skip to content

Commit

Permalink
Make up the user link string (#1947)
Browse files Browse the repository at this point in the history
prevent the user link from being escaped
  • Loading branch information
flametest authored and mistercrunch committed Jan 11, 2017
1 parent eca6dfe commit 7323f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _user_link(self, user):
if not user:
return ''
url = '/superset/profile/{}/'.format(user.username)
return '<a href="{}">{}</a>'.format(url, escape(user) or '')
return Markup('<a href="{}">{}</a>'.format(url, escape(user) or ''))

@renders('created_by')
def creator(self): # noqa
Expand Down

0 comments on commit 7323f4c

Please sign in to comment.