From 7f70fc3b5df1b707a3817ce007bc3b38c74749a5 Mon Sep 17 00:00:00 2001 From: Thibaut Broggi Date: Mon, 20 Nov 2017 10:40:26 +0100 Subject: [PATCH] Fix signature bug for twitter share (fix #17) Non-alphanum characters resulted into a truncated tweet --- srv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srv.js b/srv.js index a895157..a921a15 100755 --- a/srv.js +++ b/srv.js @@ -95,7 +95,7 @@ function buildUrl(req) { function tweetMessage(req) { let _ = req.i18n._; - return (req.args.signature ? _('Faites comme ') + req.args.signature + ', s' : 'S') + return (req.args.signature ? _('Faites comme ') + encodeURIComponent(req.args.signature) + ', s' : 'S') + _('outenez ') + encodeURIComponent('La Quadrature du Net ! #LQDoN ') + encodeURIComponent(req.protocol + "://" + req.headers.host) -- GitLab