aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/frontend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/frontend/frontend.cpp')
-rw-r--r--src/zenserver/frontend/frontend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenserver/frontend/frontend.cpp b/src/zenserver/frontend/frontend.cpp
index 7ce19363a..31d9e1c94 100644
--- a/src/zenserver/frontend/frontend.cpp
+++ b/src/zenserver/frontend/frontend.cpp
@@ -133,7 +133,8 @@ HttpFrontendService::HandleRequest(zen::HttpServerRequest& Request)
// The given content directory overrides any zip-fs discovered in the binary
if (!m_Directory.empty())
{
- FileContents File = ReadFile(m_Directory / Uri);
+ auto FullPath = m_Directory / std::filesystem::path(Uri).make_preferred();
+ FileContents File = ReadFile(FullPath);
if (!File.ErrorCode)
{