summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge López Pérez <jorge@adobo.org>2013-03-22 19:20:54 +0100
committerJorge López Pérez <jorge@adobo.org>2013-03-22 19:20:54 +0100
commitc426950b11d42c0a37175973a4416f02dec23e7c (patch)
tree962f03618942a59f72fb744c2c7012117e6e494e
parentdf2a120b28c74e3e85819294d0652759f6194af9 (diff)
downloadaskbot-c426950b11d42c0a37175973a4416f02dec23e7c.tar.gz
askbot-c426950b11d42c0a37175973a4416f02dec23e7c.tar.bz2
askbot-c426950b11d42c0a37175973a4416f02dec23e7c.zip
Fix encoding problems when sharing a question with special characters
escape() doesn't work with UTF-8 characters
-rw-r--r--askbot/media/js/post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/media/js/post.js b/askbot/media/js/post.js
index 342a3cf3..fb9f991d 100644
--- a/askbot/media/js/post.js
+++ b/askbot/media/js/post.js
@@ -2107,7 +2107,7 @@ var socialSharing = function(){
URL = window.location.href;
var urlBits = URL.split('/');
URL = urlBits.slice(0, -2).join('/') + '/';
- TEXT = escape($('h1 > a').html());
+ TEXT = encodeURIComponent($('h1 > a').html());
var hashtag = encodeURIComponent(
askbot['settings']['sharingSuffixText']
);