Loading editor/src/webedit_config.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <iostream> #include <algorithm> #include <string> #include <cctype> #include <confplus/exception.h> Loading Loading @@ -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; Loading src/conf.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
editor/src/webedit_config.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <iostream> #include <algorithm> #include <string> #include <cctype> #include <confplus/exception.h> Loading Loading @@ -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; Loading
src/conf.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading