Skip to content

Node.js based forum software built for the modern web

closes #4010

barisusaklif8a114ba5c05
diff --git a/public/src/modules/share.js b/public/src/modules/share.js
index 6665a30b8c..1413921fc9 100644
--- a/public/src/modules/share.js
+++ b/public/src/modules/share.js
@@ -32,7 +32,7 @@ define('share', function() {
});
addHandler('.twitter-share', function () {
- return openShare('https://twitter.com/intent/tweet?text=' + name + '&url=', getPostUrl($(this)), 550, 420);
+ return openShare('https://twitter.com/intent/tweet?text=' + encodeURIComponent(name) + '&url=', getPostUrl($(this)), 550, 420);
});
addHandler('.facebook-share', function () {