Skip to content
Browse files

Added cgi_escape to prevent invalid title

1 parent c480429 commit aa3b671354339fefedde2f75f4be0fa063ca77e1 @jk-gan jk-gan committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 _layouts/post.html
View
2 _layouts/post.html
@@ -13,7 +13,7 @@ <h1 class="post-title">{{ page.title }}</h1>
</section>
<footer class="post-footer">
<section class="share">
- <a class="icon" href="https://twitter.com/intent/tweet?url={{ site.url }}{{ page.id }}&text={{ page.title }}&via={{ site.twitter_username }}" target="_blank">
+ <a class="icon" href="https://twitter.com/intent/tweet?url={{ site.url }}{{ page.id }}&text={{page.title | cgi_escape}}&via={{ site.twitter_username }}" target="_blank">
Share on
{% include icon-twitter.html %}
</a>

0 comments on commit aa3b671

Please sign in to comment.
Something went wrong with that request. Please try again.