Merge pull request #1415 from OpenRefine/issue1381

Fix URI encoding of flyout parameters
This commit is contained in:
Jacky 2018-01-03 20:18:50 -05:00 committed by GitHub
commit 9cbbbc6ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1455,7 +1455,7 @@
//this.flyoutpane.hide();
var flyout_id = data.id;
var url = this.flyout_url.replace(/\$\{id\}/g, data.id);
var url = this.flyout_url.replace(/\$\{id\}/g, encodeURIComponent(data.id));
var ajax_options = {
url: url,
@ -1825,7 +1825,7 @@
}
else {
id = data['mid'];
image = flyout_image_url.replace(/\$\{id\}/g, id);
image = flyout_image_url.replace(/\$\{id\}/g, encodeURIComponent(id));
}
var desc_text = null;