Escape the post sharing URL (fix #496)
This commit is contained in:
parent
c3b2151ca0
commit
66e655f09b
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
{% assign url = page.url | absolute_url %}
|
||||
|
||||
{% for share in site.data.share.platforms %}
|
||||
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}
|
||||
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url | escape %}
|
||||
<a href="{{ link }}" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}">
|
||||
<i class="fa-fw {{ share.icon }}"></i>
|
||||
|
|
Loading…
Reference in a new issue