mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
controlapi/config: switch to new plain output format
Origin commit data
------------------
Branch: ni/coolstream
Commit: b941eb950e
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-20 (Sat, 20 Feb 2016)
Origin message was:
------------------
- controlapi/config: switch to new plain output format
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2996,7 +2996,7 @@ void CControlAPI::ConfigCGI(CyhookHandler *hh) {
|
||||
std::string result = "";
|
||||
std::string configFileName = hh->ParamList["config"];
|
||||
|
||||
TOutType outType = hh->outStart(true /*old mode*/);
|
||||
TOutType outType = hh->outStart();
|
||||
|
||||
if (hh->ParamList["action"] == "submit")
|
||||
load = false;
|
||||
@@ -3022,16 +3022,12 @@ void CControlAPI::ConfigCGI(CyhookHandler *hh) {
|
||||
replace(key, ".", "_dot_");
|
||||
replace(key, "-", "_bind_");
|
||||
if (!(hh->ParamList["config"] == "nhttpd" && it->first == "mod_auth.password")) {
|
||||
if(outType == plain)
|
||||
result += key + "=" + it->second + "\n";
|
||||
else {
|
||||
if(it != start)
|
||||
result += hh->outNext();
|
||||
result += hh->outPair(key, it->second, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else { // set values and save list
|
||||
for (CStringList::iterator it = hh->ParamList.begin(); it != hh->ParamList.end(); ++it) {
|
||||
std::string key = it->first;
|
||||
|
Reference in New Issue
Block a user