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();
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;