Commit 7e10a088 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

The value must be encoded as it may contain semi-colons, etc

parent 088cb8df
......@@ -440,7 +440,7 @@ function fetch_and_setup_change_listener(fetch_url, write_url, target_div) {
var blocks = $(ref_object).attr(name).split(",");
var vals = jQuery.map(blocks, function(e,i) {
var parts = e.split("=");
return parts[0] + "=" + f($('#'+parts[1])[0]);
return parts[0] + "=" + encodeURIComponent(f($('#'+parts[1])[0]));
});
return "&" + vals.join("&");
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment