]> _ Git - fluidbook-html5.git/commitdiff
wip #411 @0:30
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 May 2016 09:13:46 +0000 (09:13 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 May 2016 09:13:46 +0000 (09:13 +0000)
js/libs/fluidbook/fluidbook.js

index d2f29e6cd982c0cd5229a944106ae9486bdc7cf0..d6af8a6eab1059e02e25a69d3795213efefde4b1 100644 (file)
@@ -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);
     },