[#67,#87,link,embed][s]: encode query string uri components so they work correctly from link and embedding.

This commit is contained in:
Rufus Pollock
2012-05-15 05:31:15 +01:00
parent 57548e0d17
commit d42d1c0dbd
3 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ my.composeQueryString = function(queryParams) {
if (typeof(value) === 'object') {
value = JSON.stringify(value);
}
items.push(key + '=' + value);
items.push(key + '=' + encodeURIComponent(value));
});
queryString += items.join('&');
return queryString;