Loading src/admin.cpp +7 −3 Changes for src/admin.cpp: 7 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -701,6 +701,7 @@ namespace authdb { void createDomain(libhttppp::HttpRequest &curreq, const int tid, ULONG_PTR args){ libhttppp::HttpForm curform; curform.parse(curreq); std::string name; if (curform.getBoundary()) { uuid::uuid uid; Loading @@ -713,7 +714,6 @@ namespace authdb { if(curformdat->Value.empty()) continue; std::string name; int stortype=TextStorage; for(libhttppp::HttpForm::MultipartForm::Data::ContentDisposition *curdispo=curformdat->getDisposition(); Loading @@ -722,10 +722,12 @@ namespace authdb { std::string tmp=curdispo->getKey().data(); if(tmp=="name") if(tmp=="domainname"){ name=curdispo->getValue().data(); continue; } if(tmp=="filename"){ if(tmp=="domainstorage"){ stortype=BinaryStorage; continue; } Loading Loading @@ -790,9 +792,11 @@ namespace authdb { ddat.append(dodat); delete[] dodat.data; } name.clear(); stortype=EmptyStorage; } Domain domain; domain.create(_AdminBackend,&ddat); } libhtmlpp::HtmlString form,out; Loading Loading
src/admin.cpp +7 −3 Changes for src/admin.cpp: 7 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -701,6 +701,7 @@ namespace authdb { void createDomain(libhttppp::HttpRequest &curreq, const int tid, ULONG_PTR args){ libhttppp::HttpForm curform; curform.parse(curreq); std::string name; if (curform.getBoundary()) { uuid::uuid uid; Loading @@ -713,7 +714,6 @@ namespace authdb { if(curformdat->Value.empty()) continue; std::string name; int stortype=TextStorage; for(libhttppp::HttpForm::MultipartForm::Data::ContentDisposition *curdispo=curformdat->getDisposition(); Loading @@ -722,10 +722,12 @@ namespace authdb { std::string tmp=curdispo->getKey().data(); if(tmp=="name") if(tmp=="domainname"){ name=curdispo->getValue().data(); continue; } if(tmp=="filename"){ if(tmp=="domainstorage"){ stortype=BinaryStorage; continue; } Loading Loading @@ -790,9 +792,11 @@ namespace authdb { ddat.append(dodat); delete[] dodat.data; } name.clear(); stortype=EmptyStorage; } Domain domain; domain.create(_AdminBackend,&ddat); } libhtmlpp::HtmlString form,out; Loading