diff options
| author | 2025-11-03 00:29:40 +0000 | |
|---|---|---|
| committer | 2025-11-03 00:30:04 +0000 | |
| commit | bec505fc6c6699283d431ea96aaeb8543bc8bef1 (patch) | |
| tree | 94c7b4f3722989c8807e7c200099021a4d575f8e /src/configreader.cpp | |
| parent | Only cache the package directory on Windows. (diff) | |
| parent | Improve the way client certificates are validated in ssl_openssl. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index f861f35ba..a7c719f43 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -70,7 +70,7 @@ ServerConfig::ServerPaths::ServerPaths(const std::shared_ptr<ConfigTag>& tag) std::string ServerConfig::ServerPaths::ExpandPath(const std::string& base, const std::string& fragment) { // The fragment is an absolute path, don't modify it. - if (std::filesystem::path(fragment).is_absolute()) + if (fragment.empty() || std::filesystem::path(fragment).is_absolute()) return fragment; if (!fragment.compare(0, 2, "~/", 2)) |
