Escape the post sharing URL (fix #496)

This commit is contained in:
Cotes Chung 2022-01-23 05:11:14 +08:00
parent c3b2151ca0
commit 66e655f09b

View file

@ -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>