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

test

parent 5b0e12d6
Loading
Loading
Loading
Loading
+0 −1
Changes for plugins/contact/contact.cpp: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -73,7 +73,6 @@ namespace blogi {

            }

            libhtmlpp::HtmlDecode(message,message);
            libhtmlpp::HtmlString cform,out;

            if(!mail.empty() && !name.empty() && !message.empty() && !sessionid.empty()){
+7 −10
Changes for plugins/content/content.cpp: 7 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -149,10 +149,10 @@ namespace blogi {
                    sql="select tag_id FROM tags_content where tag_id = '";
                    sql << res[i][1] << "'";
                    std::string url;
                    libhttppp::HttpForm::urlDecode(Args->config->buildurl("content/tag/")+res[i][0],url);
                    libhttppp::HttpForm::urlEncode(res[i][0],url);
                    dbpp::DBResult rescnt;
                    condat << "<li><a href=\""
                    << url << "\">" << res[i][0] << "(" << Args->database[tid]->exec(sql,rescnt) << ")" << "</a></li>";
                    << Args->config->buildurl("content/tag/")+url << "\">" << res[i][0] << "(" << Args->database[tid]->exec(sql,rescnt) << ")" << "</a></li>";

                }

@@ -706,7 +706,6 @@ namespace blogi {
        }

        bool Controller(const int tid,libhttppp::HttpRequest &req,libhtmlpp::HtmlElement *page,const std::string &sessionid){
            char url[512];

            if(req.getRequestURL().compare(0,Args->config->buildurl("content").length(),Args->config->buildurl("content"))!=0){
                return false;
@@ -738,13 +737,11 @@ namespace blogi {

                if (curl.compare(Args->config->buildurl("content/tag"))>0){
                    size_t len = Args->config->buildurl("content/tag/").length();
                    libhttppp::HttpForm dec;
                    std::string tag;
                    std::copy(curl.begin()+len,curl.end(),std::back_inserter(tag));
                    tag.push_back('\0');
                    std::string utag;
                    dec.urlDecode(tag,utag);
                    contentIdxPage(tid,req,page,utag.data(),startpos,SITELIMIT,sessionid);
                    std::string tag,dtag;
                    std::copy(curl.begin()+len,curl.end(),std::back_inserter(dtag));
                    dtag.push_back('\0');
                    libhttppp::HttpForm::urlDecode(dtag,tag);
                    contentIdxPage(tid,req,page,tag.data(),startpos,SITELIMIT,sessionid);
                 }else{
                    contentIdxPage(tid,req,page,nullptr,startpos,SITELIMIT,sessionid);
                 }