Commit 2f9fef0f authored by jan.koester's avatar jan.koester
Browse files

fixes

parent fabf7b37
Loading
Loading
Loading
Loading
+2 −5
Changes for plugins/staticpage/static.cpp: 2 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -132,17 +132,14 @@ void blogi::StaticPage::newPage(const int tid,libhttppp::HttpRequest& req, libht
                curctdisp; curctdisp=curctdisp->nextContentDisposition()){

                std::string data;
                libhtmlpp::HtmlString result;

                std::copy(curformdat->Value.begin(),curformdat->Value.end(),
                      std::inserter<std::string>(data,data.begin()));

                if(std::equal(curctdisp->getValue().begin(),curctdisp->getValue().end(),"url")){
                    libhtmlpp::HtmlEncode(data.c_str(),&result);
                    surl=result.c_str();
                    libhtmlpp::HtmlEncode(data.c_str(),surl);
                }else if(std::equal(curctdisp->getValue().begin(),curctdisp->getValue().end(),"meta")){
                    libhtmlpp::HtmlEncode(data.c_str(),&result);
                    meta=result.c_str();
                    libhtmlpp::HtmlEncode(data.c_str(),meta);
                }else if(std::equal(curctdisp->getValue().begin(),curctdisp->getValue().end(),"text")){
                    text=data;
                }
+3 −2
Changes for src/blogi.cpp: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -635,8 +635,9 @@ RETRY_REQUEST:
        if(e.getErrorType() == libhttppp::HTTPException::Note || e.getErrorType() == libhttppp::HTTPException::Warning)
            return;
        libhtmlpp::HtmlString output;
        libhtmlpp::HtmlString err,hreason;
        libhtmlpp::HtmlEncode(e.what(),&hreason);
        libhtmlpp::HtmlString err;
        std::string hreason;
        libhtmlpp::HtmlEncode(e.what(),hreason);
        err << "<!DOCTYPE html><html><body style=\"color:rgb(238, 238, 238); background:rgb(35, 38, 39);\"><span>"
        << hreason
        << "</span><br/><a style=\"text-decoration: none; color: rgb(58,212, 58);\" href=\""