Commit 3085f2e7 authored by jan.koester's avatar jan.koester
Browse files

fixed url change

parent c1895f6c
Loading
Loading
Loading
Loading
Loading
+3 −3
Changes for src/admin.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -562,8 +562,8 @@ namespace authdb {
            libhttppp::HttpForm form;
            form.parse(curreq);

            char cdid[255];
            if(sscanf(curreq->getRequestURL(),"/settings/%[^/]",cdid)<0)
            char cdid[255],suburl[255];
            if(sscanf(url,"/settings/%[^/]/%s",cdid,suburl)<0)
                cdid[0]='\0';

            for (libhttppp::HttpForm::UrlcodedForm::Data* cururlform = form.UrlFormData.getFormData(); cururlform;
@@ -571,7 +571,7 @@ namespace authdb {
                if( strcmp(cururlform->getKey(),"domaindid")==0){
                    if(strcmp(cdid,cururlform->getValue())!=0){
                        char rurl[255];
                        snprintf(rurl,255,"/settings/%s/%s",cururlform->getValue(),url);
                        snprintf(rurl,255,"/settings/%s/%s",cururlform->getValue(),suburl);
                        libhttppp::HttpResponse rep;
                        rep.setState(HTTP307);
                        rep.setVersion(HTTPVERSION(1.1));