aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/frontend.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2024-10-14 10:06:38 +0200
committerGitHub Enterprise <[email protected]>2024-10-14 10:06:38 +0200
commit0fc91c7eeac9df19fa8d29dd99f12493372b501d (patch)
tree8969d3fef106f90cba01c3ef51e56637f2f84c6b /src/zenserver/frontend/frontend.cpp
parentAdd ability to read the oplog's ReferencedSet, as written by the cook… (#190) (diff)
downloadzen-0fc91c7eeac9df19fa8d29dd99f12493372b501d.tar.xz
zen-0fc91c7eeac9df19fa8d29dd99f12493372b501d.zip
Dashboard: oplog entry data download, more detail, styling tweaks. (#194)
* MSVC's std::fs::path doesn't like appending '/' separated path components * Redirect '/dashboard' to '/dashboard/' * Missed a few copyright headers * Moved unescaped logo somewhere more suitable * More robust catching and displaying of errors * No need for the guard now or for waiting * Formal access to a component's style * Style tables explicitly without instead of via a CSS variable * Highlight a row under the cursor to guide user's eye * Not using css_var() so it was removed * Add more detail to a project's list of oplogs * Disabled test page's CbObject testing * Consider all fields ending in "importedpackageids" as dependencies * Don't wrap sector headers * Package ids were derived with endianess back to front * Moved oplog marker column further left * Adopt a vararg-style to Table.add_row() for cell contents * List and hotlink oplog entries' package data * Modest control over how a table's columns are arranged * Added tables to test column spacing * Keep stat filter input box correctly up to date * A clang-format run * Updated html.zip * validate found oplog directories when doing discover pass --------- Co-authored-by: Dan Engelbrecht <[email protected]>
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)
{