Skip to content

Commit

Permalink
Escape the post sharing URL (fix cotes2020#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 authored and shihtiy-tw committed Nov 26, 2022
1 parent 9131227 commit 9e81a47
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 9e81a47

Please sign in to comment.