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

test

parent 5380e39d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@

#include <iostream>
#include <algorithm>
#include <string>
#include <cctype>
#include <confplus/exception.h>

@@ -142,7 +143,11 @@ webedit::Config::Config(const std::string &path) : confplus::Config(path) {
        try { src.clientName   = getValue(getKey((base + "/CLIENTNAME").c_str()), 0); }   catch (...) {}
        try { src.clientSecret = getValue(getKey((base + "/CLIENTSECRET").c_str()), 0); } catch (...) {}
        try { src.domain       = getValue(getKey((base + "/DOMAIN").c_str()), 0); }       catch (...) { src.domain = ""; }

        try { src.domain       = getValue(getKey((base + "/DOMAIN").c_str()), 0); }       catch (...) { src.domain = ""; }
        try {
            std::string v = getValue(getKey((base + "/TLS_VERIFY").c_str()), 0);
            src.tlsVerify = !(v == "false" || v == "0" || v == "no");
        } catch (...) { src.tlsVerify = true; }
        if (src.url.empty())
            continue;

+1 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ blogi::Config::Config(const std::string &path) : confplus::Config(path), _Config
                std::string v = getValue(getKey((base + "/AUTH_TLS_VERIFY").c_str()), 0);
                dc.authTlsVerify = !(v == "false" || v == "0" || v == "no");
            } catch(...) {}
            
            try { dc.siteUrl = getValue(getKey((base + "/URL").c_str()), 0); } catch(...) {}
            dc.siteUrls.clear();
            if (!dc.siteUrl.empty()) dc.siteUrls.push_back(dc.siteUrl);