luci.http.prepare_content("text/plain")
local lxc_configuration = luci.http.formvalue("lxc_conf")
+ lxc_configuration = luci.http.urldecode(lxc_configuration, true)
if lxc_configuration == nil then
util.perror("lxc error: config formvalue is empty")
return
var lxc_name = textarea.dataset['id'];
var lxc_conf = textarea.value;
- new XHR().post('<%=luci.dispatcher.build_url("admin", "services")%>/lxc_configuration_set/' + lxc_name, "lxc_conf=" + encodeURIComponent(lxc_conf),
+ new XHR().post('<%=luci.dispatcher.build_url("admin", "services")%>/lxc_configuration_set/' + lxc_name, {"lxc_conf": encodeURIComponent(lxc_conf)},
function(x)
{
if (!x || x.responseText != "0")