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:
yjogol
2011-09-09 18:12:10 +00:00
parent 2d7b016434
commit b151eaebf7

View File

@@ -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);
}
}
}
}