Properly encode query string parameters.

This commit is contained in:
Lapo Luchini
2014-05-28 16:10:08 +02:00
parent e1e2c07f2b
commit e2f61176dd

View File

@@ -84,7 +84,7 @@ function main() {
'border': '1px solid #555'
});
$(image).click(function() {
var popUrl = getFormUrl()+imageUrl;
var popUrl = getFormUrl()+encodeURIComponent(imageUrl);
window.open(popUrl);
$('#pinry-images').remove();
});