diff --git a/js/common.js b/js/common.js index 0468e28..40a81ff 100644 --- a/js/common.js +++ b/js/common.js @@ -240,7 +240,7 @@ RedditAPI.prototype.getInfo = function (url) { matches = url.match(this.commentsMatchPattern); reqUrl = 'http://' + this.domain + '/by_id/t3_' + matches[3] + '.json'; } else { - reqUrl = 'http://' + this.domain + '/api/info.json?url=' + encodeURI(url); + reqUrl = 'http://' + this.domain + '/api/info.json?url=' + encodeURIComponent(url); } response = this.apiTransmit('GET', reqUrl, false);