Fix URI encoding of flyout parameters

Closes #1381
This commit is contained in:
Antonin Delpeuch 2018-01-03 21:36:19 +01:00
parent 908bba2660
commit c9c9ee7509

View File

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