From 66e655f09bd964e2b31b992842e2f9f399a70ebc Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 23 Jan 2022 05:11:14 +0800 Subject: [PATCH] Escape the post sharing URL (fix #496) --- _includes/post-sharing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/post-sharing.html b/_includes/post-sharing.html index 2cb118f..d6c80d7 100644 --- a/_includes/post-sharing.html +++ b/_includes/post-sharing.html @@ -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 %}