mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
config API fix one comma to much
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1682 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -2582,16 +2582,19 @@ void CControlAPI::ConfigCGI(CyhookHandler *hh) {
|
||||
|
||||
if (load) { // get and output list
|
||||
conf = Config->getConfigDataMap();
|
||||
ConfigDataMap::iterator it, end;
|
||||
for (it = conf.begin(), end = conf.end(); it != end; it++) {
|
||||
ConfigDataMap::iterator it, end, start;
|
||||
for (start = conf.begin(), it=start, end = conf.end(); it != end; it++) {
|
||||
std::string key = it->first;
|
||||
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
|
||||
result += hh->outPair(key, it->second, true);
|
||||
else {
|
||||
if(it != start)
|
||||
result += hh->outNext();
|
||||
result += hh->outPair(key, it->second, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user