Webui save - fix white space writing (#364)

* implement config save over http post instead of json

* remove json set config
finish config write thrugh http post

* remove debug code and add failure messages

* fix save issue with white spaces
This commit is contained in:
redPanther
2017-01-15 08:53:52 +01:00
committed by GitHub
parent 8a9d2760ef
commit 281b1c8ea5
2 changed files with 3 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ function requestWriteConfig(config)
complete_config[i] = val;
});
var config_str = encode_utf8(JSON.stringify(complete_config));
var config_str = escape(encode_utf8(JSON.stringify(complete_config)));
$.post( "/cgi/cfg_set", { cfg: config_str })
.done(function( data ) {