mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- controlapi/config: switch to new plain output format
This commit is contained in:
@@ -2996,7 +2996,7 @@ void CControlAPI::ConfigCGI(CyhookHandler *hh) {
|
|||||||
std::string result = "";
|
std::string result = "";
|
||||||
std::string configFileName = hh->ParamList["config"];
|
std::string configFileName = hh->ParamList["config"];
|
||||||
|
|
||||||
TOutType outType = hh->outStart(true /*old mode*/);
|
TOutType outType = hh->outStart();
|
||||||
|
|
||||||
if (hh->ParamList["action"] == "submit")
|
if (hh->ParamList["action"] == "submit")
|
||||||
load = false;
|
load = false;
|
||||||
@@ -3022,13 +3022,9 @@ void CControlAPI::ConfigCGI(CyhookHandler *hh) {
|
|||||||
replace(key, ".", "_dot_");
|
replace(key, ".", "_dot_");
|
||||||
replace(key, "-", "_bind_");
|
replace(key, "-", "_bind_");
|
||||||
if (!(hh->ParamList["config"] == "nhttpd" && it->first == "mod_auth.password")) {
|
if (!(hh->ParamList["config"] == "nhttpd" && it->first == "mod_auth.password")) {
|
||||||
if(outType == plain)
|
if(it != start)
|
||||||
result += key + "=" + it->second + "\n";
|
result += hh->outNext();
|
||||||
else {
|
result += hh->outPair(key, it->second, false);
|
||||||
if(it != start)
|
|
||||||
result += hh->outNext();
|
|
||||||
result += hh->outPair(key, it->second, false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user