From: Vincent Vanwaelscappel Date: Tue, 10 May 2016 09:13:46 +0000 (+0000) Subject: wip #411 @0:30 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9d6e7e62e28e85ef80c17eb0790d8a7949536693;p=fluidbook-html5.git wip #411 @0:30 --- 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); },