Loading plugins/navbar/navbar.cpp +1 −1 Changes for plugins/navbar/navbar.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ namespace blogi { sql2.clear(); if(curpage->getElementbyID(res[i][2])){ try{ libhtmlpp::Element *el=buf.parse(); libhtmlpp::Element &el=buf.parse(); curpage->getElementbyID(res[i][2])->appendChild(el); }catch(libhtmlpp::HTMLException &e){ libhttppp::HTTPException excep; Loading plugins/nginxfiler/filer.cpp +1 −1 Changes for plugins/nginxfiler/filer.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ namespace blogi { RenderUI(path,ndir,fileHtml); libhtmlpp::HtmlElement fel=(libhtmlpp::HtmlElement*)fileHtml.parse(); libhtmlpp::HtmlElement fel=(libhtmlpp::HtmlElement*)&fileHtml.parse(); if(page->getElementbyID("main")) page->getElementbyID("main")->appendChild(fel); Loading plugins/staticpage/static.cpp +8 −1 Changes for plugins/staticpage/static.cpp: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include <algorithm> #include <htmlpp/html.h> #include <htmlpp/exception.h> #include <conf.h> Loading Loading @@ -150,7 +151,13 @@ void blogi::StaticPage::newPage(const int tid,libhttppp::HttpRequest& req, libht } }catch(...){}; if(!surl.empty() && ( !text.empty() && text.validate(&err) ) ){ if(!surl.empty() && ( !text.empty()) ){ try{ text.parse(); }catch(libhtmlpp::HTMLException &e){ std::cerr << e.what() << std::endl; return; } uuid::uuid id; id.generate(); Loading src/theme.cpp +1 −1 Changes for src/theme.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ void blogi::Theme::printSite(const int tid,libhtmlpp::HtmlString &output,libhtml if(footernav) footernav->appendChild(footerancor.parse()); libhtmlpp::print(index,output,_Formated); libhtmlpp::print(*index,output,_Formated); }catch(libhtmlpp::HTMLException &e){ libhttppp::HTTPException excep; excep[libhttppp::HTTPException::Error] << e.what(); Loading src/webedit/edit.cpp +1 −1 Changes for src/webedit/edit.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ void blogi::webedit::WebEditor(PluginArgs &plgars,libhttppp::HttpRequest& curreq plgars.theme->renderPage(tid,"editor.html",editpage,edithtml); libhtmlpp::print(&edithtml,ouput,false); libhtmlpp::print(edithtml,ouput,false); libhttppp::HttpResponse curres; curres.setState(HTTP200); Loading Loading
plugins/navbar/navbar.cpp +1 −1 Changes for plugins/navbar/navbar.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ namespace blogi { sql2.clear(); if(curpage->getElementbyID(res[i][2])){ try{ libhtmlpp::Element *el=buf.parse(); libhtmlpp::Element &el=buf.parse(); curpage->getElementbyID(res[i][2])->appendChild(el); }catch(libhtmlpp::HTMLException &e){ libhttppp::HTTPException excep; Loading
plugins/nginxfiler/filer.cpp +1 −1 Changes for plugins/nginxfiler/filer.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ namespace blogi { RenderUI(path,ndir,fileHtml); libhtmlpp::HtmlElement fel=(libhtmlpp::HtmlElement*)fileHtml.parse(); libhtmlpp::HtmlElement fel=(libhtmlpp::HtmlElement*)&fileHtml.parse(); if(page->getElementbyID("main")) page->getElementbyID("main")->appendChild(fel); Loading
plugins/staticpage/static.cpp +8 −1 Changes for plugins/staticpage/static.cpp: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include <algorithm> #include <htmlpp/html.h> #include <htmlpp/exception.h> #include <conf.h> Loading Loading @@ -150,7 +151,13 @@ void blogi::StaticPage::newPage(const int tid,libhttppp::HttpRequest& req, libht } }catch(...){}; if(!surl.empty() && ( !text.empty() && text.validate(&err) ) ){ if(!surl.empty() && ( !text.empty()) ){ try{ text.parse(); }catch(libhtmlpp::HTMLException &e){ std::cerr << e.what() << std::endl; return; } uuid::uuid id; id.generate(); Loading
src/theme.cpp +1 −1 Changes for src/theme.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ void blogi::Theme::printSite(const int tid,libhtmlpp::HtmlString &output,libhtml if(footernav) footernav->appendChild(footerancor.parse()); libhtmlpp::print(index,output,_Formated); libhtmlpp::print(*index,output,_Formated); }catch(libhtmlpp::HTMLException &e){ libhttppp::HTTPException excep; excep[libhttppp::HTTPException::Error] << e.what(); Loading
src/webedit/edit.cpp +1 −1 Changes for src/webedit/edit.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ void blogi::webedit::WebEditor(PluginArgs &plgars,libhttppp::HttpRequest& curreq plgars.theme->renderPage(tid,"editor.html",editpage,edithtml); libhtmlpp::print(&edithtml,ouput,false); libhtmlpp::print(edithtml,ouput,false); libhttppp::HttpResponse curres; curres.setState(HTTP200); Loading