From 9d6e7e62e28e85ef80c17eb0790d8a7949536693 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 10 May 2016 09:13:46 +0000 Subject: [PATCH] wip #411 @0:30 --- js/libs/fluidbook/fluidbook.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index d2f29e6c..d6af8a6e 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -1196,7 +1196,7 @@ Fluidbook.prototype = { } }, sendEmail: function () { - window.location = 'mailto:?subject=' + this.datas.title + '&body=' + this.datas.title + ' : ' + this.getLocationToShare(); + window.location = 'mailto:?subject=' + encodeURIComponent(this.datas.title) + '&body=' + encodeURIComponent(this.datas.title + ' : ' + this.getLocationToShare()); this.stats.track(5); }, sendTwitter: function () { @@ -1428,7 +1428,7 @@ Fluidbook.prototype = { }, function (args) { }); } else { - window.location = 'mailto:?subject=' + subject + '&body=' + body; + window.location = 'mailto:?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(body); } this.stats.track(5); }, -- 2.39.5