Commit 55adf425 authored by jan.koester's avatar jan.koester
Browse files

fxied

parent a98de0d0
Loading
Loading
Loading
Loading
Loading
+7 −3
Changes for src/admin.cpp: 7 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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;
@@ -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();
@@ -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;
                        }
@@ -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;