Skip to content

Commit

Permalink
URL encode email subject. Fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed May 23, 2015
1 parent 1e862ed commit 19c64d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/social-share-kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ var SocialShareKit = (function () {
url = 'http://vkontakte.ru/share.php?url=' + shareUrlEnc;
break;
case 'email':
url = 'mailto:?subject=' + title +
url = 'mailto:?subject=' + encodeURIComponent(title) +
'&body=' + encodeURIComponent(title + '\n' + shareUrl + '\n\n' + text + '\n');
break;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js/social-share-kit.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19c64d0

Please sign in to comment.