Commit f0058707 authored by jan.koester's avatar jan.koester
Browse files

test

parent a1f922dc
Loading
Loading
Loading
Loading
+6 −7
Changes for plugins/content/content.cpp: 6 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ namespace blogi {
            << "<span class=\"title\">" << res[0][1] << "</span>"
            << "<div class=\"blog_entry_idx_content\" ><div  class=\"text\">" << res[0][2] << "</div>"
            << "<span class=\"author\">verfasst von " << res[0][3] << " am "<< res[0][4]  <<" </span>"
            << "</div></div><a class=\"back_content\" href=\"#\" onclick=\"history.back()\">Zurück<a/></div>";
            << "</div></div><a class=\"back_content\" href=\"#\" onclick=\"history.back()\">Zurück</a></div>";

            libhtmlpp::HtmlString out;

@@ -334,7 +334,7 @@ namespace blogi {
                }catch(const char *e){
                    libhttppp::HTTPException re;
                    re[libhttppp::HTTPException::Error] << e;
                    throw e;
                    throw re;
                }


@@ -735,11 +735,10 @@ namespace blogi {
                        startpos=atoi(cururlform->getValue().c_str());
                }

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