Skip to content

Commit

Permalink
Escape the post sharing URL (fix #496)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Jan 22, 2022
1 parent c3b2151 commit 66e655f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/post-sharing.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 66e655f

Please sign in to comment.