Skip to content

Commit

Permalink
Escape url in request
Browse files Browse the repository at this point in the history
  • Loading branch information
tzafrir committed Apr 1, 2012
1 parent 34469f9 commit 32c24c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsapi/jsapi_for_google_plus.js
Expand Up @@ -1356,7 +1356,7 @@ GooglePlusAPI.prototype.fetchLinkMedia = function(callback, url) {
return;
}
var self = this;
var params = "?c=" + url + "&t=1&slpf=0&ml=1";
var params = "?c=" + encodeURIComponent(url) + "&t=1&slpf=0&ml=1";
var data = 'susp=false&at=' + this._getSession();
this._requestService(function(response) {
if (response.error) {
Expand Down

0 comments on commit 32c24c7

Please sign in to comment.